Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565828 - dev-java/oracle-jdk-bin-1.8.0.66 - javapackager is "broken"
Summary: dev-java/oracle-jdk-bin-1.8.0.66 - javapackager is "broken"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-15 10:06 UTC by OzTiram
Modified: 2016-01-01 22:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description OzTiram 2015-11-15 10:06:48 UTC
The new JDK 1.8 includes a binary called javapackager. This binary is installed by default, but it has a dependency on /opt/oracle-jdk-bin-1.8.0.66/lib/ant-javafx.jar which is not installed by default.

I was quite confused why this binary failed to work. After manually copying the file there it worked. 

Then I re-emerge with the appropriate flag activated, namely 'javafx'.

I suggest that this binary will not be installed without these flags. Or that the ebuild will at least say something like:

"JAVA 1.8 includes javapackager, with a run time dependency of the use flag javafx, if you would like to use this binary re-emerge this package with this flag enabled".


Reproducible: Always

Steps to Reproduce:
1. Install the package dev-java/oracle-jdk-bin-1.8.0.66 with the default use flags
2. call the binary /opt/oracle-jdk-bin-1.8.0.66/bin/javapackager.
Actual Results:  
The binary fails to run showing the following error:

Error: Could not find or load main class com.sun.javafx.tools.packager.Main


Expected Results:  
The binary should show it's help, or produce some meaningful output.
Comment 1 James Le Cuirot gentoo-dev 2015-11-22 21:42:44 UTC
Thanks. I hadn't realised they were shipping any JavaFX programs with the JDK.

I'm pretty busy so since this isn't critical, I'll leave this till the next Oracle release, which will probably be in the next month or so.
Comment 2 James Le Cuirot gentoo-dev 2016-01-01 22:53:10 UTC
Fix in -r1. I suspect a new release will come along soon so that this fix can go stable.