Default OpenJDK installation crashes with headless exception

Bug #702857 reported by Audrius Meskauskas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
New
Undecided
Unassigned

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

Revision history for this message
Audrius Meskauskas (mike-pukuotukas) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.