Hi Gert,

that's a good idea - thanks! Of course a lot of systems don't set JAVA_HOME, but it's still worth looking :-).

   - Chris

On 20/03/2006, at 11:06 PM, Gert Jan Verhoog wrote:

Hi Chris,

I just downloaded JXplorer, and discovered that the startup shell script, 'jxplorer.sh' isn't working properly with my setup. I noticed that the shell script searches for the java executable in a number of hard coded places. I think you could improve the script by checking for a java executable in $JAVA_HOME/bin/java first. I changed the first few lines of the script to:

#!/bin/sh
# OpenDirectory jxstart.sh $Revision: 1.12 $ $Date: 2004/12/16 04:00:13 $

if [ -x $JAVA_HOME/bin/java ]; then
   JAVA_LOC=$JAVA_HOME/bin/java
elif [ -x /opt/jre/bin/java ]; then
### rest of script is identical to original.


cheers,
Gert Jan

--
Gert Jan Verhoog
Func. Internet Integration
W http://www.func.nl
T +31 30 2109750
F +31 30 2109751



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jxplorer-devel mailing list
Jxplorer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-devel

Reply via email to