Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5110 - JAVA_HOME env var conflicts between jdk and jre packages

Attached to Project: Arch Linux
Opened by Matt (v01d) - Tuesday, 25 July 2006, 20:19 GMT
Last edited by Paul Mattal (paul) - Wednesday, 02 August 2006, 05:25 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To Jason Chu (jason)
Architecture All
Severity Low
Priority Normal
Reported Version 1.2.9
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The script /etc/profile.d/jre.sh seems to check for a file called 'j2sdk.sh' when it should look for 'jdk.sh' (this way the handling of JAVA_HOME would be correct). In any case, I don't know if these two packages can coexist.

The contents of jre.sh:
export J2REDIR=/opt/java/jre
export PATH=$PATH:$J2REDIR/bin
export MANPATH=$MANPATH:$J2REDIR/man
export CLASSPATH=$CLASSPATH:$J2REDIR/lib
if [ ! -f /etc/profile.d/j2sdk.sh ]; then
export JAVA_HOME=/opt/java/jre
fi

That if should look like:
if [ ! -f /etc/profile.d/jdk.sh ]; then
This task depends upon

Closed by  Jason Chu (jason)
Wednesday, 02 August 2006, 06:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 1_5_0_07-2.

Loading...