Bug 571455

Summary: JRE_HOME environment variable set to a wrong value in /etc/profile.d/alljava.sh
Product: [openSUSE] openSUSE 11.2 Reporter: Christopher Schuster <levii>
Component: BasesystemAssignee: Ruediger Oertel <ro>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: David
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christopher Schuster 2010-01-17 11:30:30 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.64 Safari/532.5

With installed Java the environment variables JAVA_HOME, JDK_HOME are set correctly, however the JRE_HOME variable is set to a wrong value.

> echo $JAVA_HOME
/usr/lib/jvm/java

> echo $JDK_HOME
/usr/lib/jvm/java 

> echo $JRE_HOME
/usr//jvm/jre


Reproducible: Always

Steps to Reproduce:
1.Install any version of java
2.Log into a valid user account
3.echo $JRE_HOME
Actual Results:  
/usr//jvm/jre

Expected Results:  
/usr/lib/jvm/jre
Comment 1 Christopher Schuster 2010-01-17 11:38:27 UTC
This can easily be fixed by changing line 21 of /etc/profile.d/alljava.sh of the aaa_base package from

  export JRE_HOME=/usr/$_libdir/jvm/jre

to

  export JRE_HOME=/usr/$__libdir/jvm/jre
Comment 2 Ruediger Oertel 2010-02-14 22:59:38 UTC
ah, okay. fixed already. marking as duplicate of bnc#549395

*** This bug has been marked as a duplicate of bug 549395 ***