From: Paul V. <pa...@vi...> - 2003-11-03 00:34:25
|
Hi all, > About JAVA_HOME: > > - In build.bat JAVA_HOME is used twice, both times in the same line: > first to call Java ("%JAVA_HOME%\bin\java.exe"), and a little later > to add %JAVA_HOME%\lib\tools.jar to the classpath. > > - In build.sh it is only used once, to add $JAVA_HOME/lib/tools.jar to > the classpath. The executable is simply called as "java". > > We seem to assume that the Java 2 executable will be in the search path > on Linux systems, but not on Windows systems. Is there a good reason > for this? To me, it would seem more logical to either call java like > "java" on boths OS'es, or to specify the path on both OS'es. Well, I just did a fresh checkout on a recently installed SuSE 8.2, and when I wanted to build the docs java was not found. It turns out that normal users don't have the java bindir in their path by default. So I think we ought to keep JAVA_HOME in the scripts after all, and change build.sh so that it calls $JAVA_HOME/bin/java instead of just "java". Greetings, Paul Vinkenoog |