JAVA_HOME
What's the deal, haven't I set JAVA_HOME correctly?
thufir@dur:~$
thufir@dur:~$ sudo Desktop/james-2.3.2/bin/run.sh
ERROR: JAVA_HOME not found in your environment.
Please, set the JAVA_HOME variable in your environment to match the
location of the Java Virtual Machine you want to use.
thufir@dur:~$
thufir@dur:~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-openjdk-common
thufir@dur:~$
thufir@dur:~$ ll /usr/lib/jvm/
total 104
drwxr-xr-x 6 root root 4096 Aug 16 00:41 ./
drwxr-xr-x 242 root root 73728 Aug 16 23:55 ../
lrwxrwxrwx 1 root root 19 Apr 12 18:57 java-1.6.0-openjdk-i386 ->
java-6-openjdk-i386/
-rw-r--r-- 1 root root 2345 Apr 12 18:57 .java-1.6.0-openjdk-i386.jinfo
drwxr-xr-x 3 root root 4096 Aug 16 00:41 java-6-openjdk-common/
drwxr-xr-x 5 root root 4096 Aug 16 00:41 java-6-openjdk-i386/
drwxr-xr-x 5 root root 4096 Aug 16 00:41 java-7-openjdk-i386/
drwxr-xr-x 8 root root 4096 Aug 14 11:14 java-7-oracle/
-rw-r--r-- 1 root root 2564 Aug 14 11:14 .java-7-oracle.jinfo
thufir@dur:~$
thufir@dur:~$ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority
Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-oracle/jre/bin/java 1063
auto mode
* 1 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061
manual mode
2 /usr/lib/jvm/java-7-oracle/bin/java 1062
manual mode
3 /usr/lib/jvm/java-7-oracle/jre/bin/java 1063
manual mode
Press enter to keep the current choice[*], or type selection number:
thufir@dur:~$
thufir@dur:~$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2)
OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)
thufir@dur:~$
see:
http://askubuntu.com/questions/175514/how-to-set-java-home-for-openjdk
thanks,
Thufir
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users