#44 openjnlp.sh uses wrong JRE

closed-fixed
launching (19)
5
2002-06-21
2002-01-25
No

openjnlp.sh uses /usr/bin/java by default. Unfortunately, this is not necessarily the JRE the user might want it to be accessing. A convention is that if the user wants a different JRE than the default, it is pointed to by the JAVA_HOME environment variable. It would be nice if openjnlp.sh followed this convention.

I think the attached openjnlp.sh should do the job. It worked for me (with JAVA_HOME=/usr/local/java/j2sdk1.4.0).

Discussion

  • Logged In: YES
    user_id=117164

    Well, for some reason SF won't let me attach the file, so here's the snippet:

    if [ "x$JAVA_HOME" = "x" ] ; then # use default
    JAVACMD=/usr/bin/java
    else # user specified alternative JRE
    JAVACMD=$JAVA_HOME/bin/java
    fi

     
    • assigned_to: kherr --> clheiny
     
    • status: open --> open-fixed
     
  • Logged In: YES
    user_id=117164

    OK, I've fixed this and checked it in. Additionally, I added the
    "$@" to the command line to pass the arguments in.

     
    • status: open-fixed --> closed-fixed
     
  • Logged In: YES
    user_id=6750

    Most excellent.