Hi,

> I freshly installed jython and trying to start I get:
> Can't exec "/usr/bin/java": No such file or directory at /usr/bin/jython
> line 115.

gij-3.3 should have supplied an alternative for /usr/bin/java, pointing
at /usr/bin/gij-wrapper-3.3.

Do you have a symlink /usr/bin/java at all?  If so, does it point to
/etc/alternatives/java?  And if so, where does the symlink
/etc/alternatives/java point?  I suspect the problem is that your
alternatives have somehow gotten out of whack.

> BTW, I have Sun???s JDK installed and JAVA_HOME is set correctly. Why
> isn???t even that found? I don???t think it is customary to set JAVA to
> point to the binary.

Jython uses the debian alternatives system to decide how to run, i.e.,
it uses the /usr/bin/java symlink.  Since $JAVA_HOME is often set by
default, a different variable was chosen for overriding the alternatives
system.  Furthermore, $JAVA and $JAVA_OPTIONS (binary + options) allow
more flexibility in starting the JVM instead of a single $JAVA_HOME
(directory).  More importantly, $JAVA and $JAVA_OPTIONS will work for JVMs
that are not Sun's (e.g., gij, which does not live within a Sun-style
directory structure).

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to