>>>>> "Michael" == Michael Sinz <[EMAIL PROTECTED]> writes:
Michael> The Java wrapper script will automatically try to find
Michael> the classes.zip file (or directory or jar or a whole list
Michael> of possible places) before it starts the JVM. However,
Michael> it does this by using the $0 (command name) to find it.
Michael> With symlinks the $0 name points to /usr/bin/java (for
Michael> example) and this is not where the rest of the Java files
Michael> are. You can still use the symlinks if you also set up a
Michael> JAVA_HOME to point to where the Java files are installed.
Michael> This normally should not be needed if you simply put the
Michael> java/bin directory into your path.
Not so. The .java_wrapper has an entry at the top to walk any
symlinks involved in finding an executable. As long as oyu leave the
standard directory tree in the .tar.gz intact, you can symlink to jave
et al from anywhere you please.
Michael> Netscape does equally complex stuff. It tries to find
Michael> itself (and there is a setting but I forgot what it was)
Michael> and once it does, it does even more by automatically
Michael> adding *all* jar files in the directory where it stores
Michael> its jar files. This is so that plug-in and add-on java
Michael> things can be done without the CLASSPATH setting. Note
Michael> that there actually is a problem with some versions of
Michael> Netscape where if you have CLASSPATH defined at all when
Michael> Netscape runs it does not try to find its own Java
Michael> directories and thus will fail to run Java. The best
Michael> thing to do is not to have CLASSPATH defined when
Michael> starting Netscape.
export MOZILLA_HOME=/path/to/top/of/netscape/directory/tree
Navigator will then successfully find the jar files it needs.
--
Stephen
---
Perl is really designed more for the guys that will hack Perl at least
20 minutes a day for the rest of their career. TCL/Python is more a
"20 minutes a week", and VB is probably in that "20 minutes a month"
group. :) -- Randal Schwartz