Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108794 - dev-util/j start script depends on a specific java version
Summary: dev-util/j start script depends on a specific java version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-10 18:34 UTC by Guillaume
Modified: 2005-11-22 20:35 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 Guillaume 2005-10-10 18:34:56 UTC
After a java upgrade j was not running any longer, the script was complaining
about missing files looking at /usr/bin/j, the reason was obvious:
---8<--- /usr/bin/j ---8<---
[...]
JAVA=/opt/sun-jdk-1.4.2.09/bin/java
JAVA_OPTIONS=
CLASSPATH="/var/tmp/portage/j-0.20.2/work/j-0.20.2/src:/usr/share/j/j.jar:/opt/sun-jdk-1.4.2.09/lib/tools.jar:/usr/share/xerces-2/lib/xercesImpl.jar"

exec $JAVA $JAVA_OPTIONS -cp $CLASSPATH Main "$@"
---8<--- /usr/bin/j ---8<---

The JAVA variable should be:
JAVA=`java-config -J`

And the CLASSPATH variable something like:
CLASSPATH="/usr/share/j/j.jar:`java-config
-O`/lib/tools.jar:/usr/share/xerces-2/lib/xercesImpl.jar"


Reproducible: Always
Steps to Reproduce:
1.update java
2.run j
3.
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2005-11-22 20:35:19 UTC
Fixed in CVS. Thanks for reporting!

/usr/bin/j now uses java-config to figure out where the java executable lives
and what classpath it should be using.