Package not dependent upon non-headless JRE

Bug #1029753 reported by Ian Gibbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arduino (Ubuntu)
New
Undecided
Unassigned

Bug Description

It is possible to install the arduino package without a suitable JRE to run it with.

11.10 64-bit. arduino-0022+dfsg-4ubuntu0.1

For whatever reason (maybe because of another program I had installed), I had default-jre-headless (and thus openjdk-6-jre-headless) installed. The computer is not headless. I did not choose to have headless JRE as I regularly use Java GUI programs.

I installed arduino from the Ubuntu Software Centre. It failed to start from the launcher. Running it from the command line gives the output:

Exception in thread "main" java.lang.ExceptionInInitializerError
    at processing.app.Base.main(Base.java:112)
Caused by: java.awt.HeadlessException
    at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:231)
    at processing.core.PApplet.<clinit>(Unknown Source)
    ... 1 more

Installing openjdk-6-jre resolves the problem by replacing the headless JRE with a full one. I don't believe I should have been able to install it without my headless JRE being upgraded to a full one.

Revision history for this message
Ian Gibbs (flash666) wrote :
Revision history for this message
Scott Howard (showard314) wrote :

Thanks,
This bug has bothered me - because it does depend on openjdk-6-jre already and should already do what you are asking (but obviously is not):

From http://packages.debian.org/sid/arduino, Arduino depends on:
dep: default-jre OR java6-runtime

default-jre requires:
default-jre-headless AND openjdk-6-jre

default-jre-headless requires:
openjdk-6-jre-headless

java6-runtime is any of:
default-jre, openjdk-6-jre, openjdk-7-jre, sun-java6-jre

So expanding dependencies, arduino requires:
(openjdk-6-jre-headless AND openjdk-6-jre)
OR
([openjdk-6-jre-headless AND openjdk-6-jre] OR openjdk-6-jre OR openjdk-7-jre OR sun-java6-jre)

So your bug should be impossible, all possible scenarios are already covered - if you only hard openjdk-6-jre-headless, it should not have let you installed arduino without first installing default-jre (which would install openjdk-6-jre).

If anyone has any hints to what's going on, I'd appreciate it.
~Scott

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.