← Back to team overview

openjdk team mailing list archive

[Bug 702857] [NEW] Default OpenJDK installation crashes with headless exception

 

Public bug reported:

This bug have been discovered in 64 bit 10.04 LTS. It is reported from
the different Ubuntu machine.

When trying to start a trivial GUI application, OpenJDK has been
crashing with HeadlessException. Web search has confirmed that I am not
alone with my problem:

http://us.generation-nt.com/answer/bug-576982-fop-java-awt-headlessexception-help-197107322.html
http://www.minecraftforum.net/viewtopic.php?f=17&t=112972

It looks that some version of fake OpenJDK is installed but it actually
cannot run any program with GUI. This is much worse than simply stating
that Java is NOT installed, as creates the misleading impression of
OpenJDK being simply buggy. Deciding from that is written in pages under
the two links above, most of the users in such case will immediately try
to switch to Oracle's proprietary java or even away to the alternative
OS.

I think that if OpenJDK is already half installed maybe there is no big
harm to have it fully installed by default. Alternatively, some more
reasonable error message should appear on the failed startup, at best
directly indicating the name of the missing package. The third solution
is NOT to have OpenJDK installed; this also would lead the user to the
correct conclusion (I miss Java packages) faster.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: openjdk-6-jre 6b20-1.9.2-0ubuntu1~10.04.1
ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
Uname: Linux 2.6.32-27-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Jan 14 13:25:24 2011
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: openjdk-6

** Affects: openjdk-6 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug lucid lynx

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
https://bugs.launchpad.net/bugs/702857

Title:
  Default OpenJDK installation crashes with headless exception

Status in “openjdk-6” package in Ubuntu:
  New

Bug description:
  This bug have been discovered in 64 bit 10.04 LTS. It is reported from
  the different Ubuntu machine.

  When trying to start a trivial GUI application, OpenJDK has been
  crashing with HeadlessException. Web search has confirmed that I am
  not alone with my problem:

  http://us.generation-nt.com/answer/bug-576982-fop-java-awt-headlessexception-help-197107322.html
  http://www.minecraftforum.net/viewtopic.php?f=17&t=112972

  It looks that some version of fake OpenJDK is installed but it
  actually cannot run any program with GUI. This is much worse than
  simply stating that Java is NOT installed, as creates the misleading
  impression of OpenJDK being simply buggy. Deciding from that is
  written in pages under the two links above, most of the users in such
  case will immediately try to switch to Oracle's proprietary java or
  even away to the alternative OS.

  I think that if OpenJDK is already half installed maybe there is no
  big harm to have it fully installed by default. Alternatively, some
  more reasonable error message should appear on the failed startup, at
  best directly indicating the name of the missing package. The third
  solution is NOT to have OpenJDK installed; this also would lead the
  user to the correct conclusion (I miss Java packages) faster.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: openjdk-6-jre 6b20-1.9.2-0ubuntu1~10.04.1
  ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
  Uname: Linux 2.6.32-27-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  Date: Fri Jan 14 13:25:24 2011
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: openjdk-6





Follow ups

References