[Linux-Biella] java questo sconosciuto

Marco Ermini linux@bilug.linux.it
Tue, 26 Mar 2002 15:48:04 +0100


On Tue, 26 Mar 2002 15:40:11 +0100, Stefano Porrino <stefano@porrino.it>
wrote:

> domanda credo per Lucabert:
> No Java virtual machine could be found from your PATH
> environment variable.
> 
> ho installato i runtime del j2re1.4.0, sai se devo settare anche delle
> variabili d'ambiente? Sull'help non ne vedo menzione.

Devi evidentemente aggiungere al tuo path la direcotory bin della tua
installazione delle JDK.

Io (su redhat 7.x) mi sono fatto questo piccolo script che ho messo in
/etc/profile.d/ :

java.sh:
----
# Java initialization script (sh)
if [ -z "$JAVAHOME" ] ; then
        JAVAHOME="/usr/java/jdk1.3.1_01"
fi
export JAVAHOME
if [ -z "$JDK_HOME" ] ; then
        JDK_HOME="/usr/java/jdk1.3.1_01"
fi
export JDK_HOME

if ! echo $PATH | /bin/grep -q "/usr/java/jdk1.3.1_01/bin" ; then
    PATH="$PATH:/usr/java/jdk1.3.1_01/bin"
fi
----

HTH


ciao

-- 
Marco Ermini
http://www.markoer.org - ICQ UIN 50825709 - GPG KEY 0x64ABF7C6
Never attribute to malice that which is adequately explained
by stupidity. (a sig from Slashdot postings)