Created
August 20, 2012 06:57
-
-
Save THUFIR/3401713 to your computer and use it in GitHub Desktop.
java home
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thufir@dur:~/apache-james-3.0-beta4/bin$ | |
thufir@dur:~/apache-james-3.0-beta4/bin$ ./james-cli.sh -h localhost -p 9999 adddomain mydomain.tld | |
Error: JAVA_HOME is not defined correctly. | |
We cannot execute /usr/lib/jvm/java-6-openjdk-common/bin/java | |
thufir@dur:~/apache-james-3.0-beta4/bin$ | |
thufir@dur:~/apache-james-3.0-beta4/bin$ echo $JAVA_HOME/usr/lib/jvm/java-6-openjdk-common | |
thufir@dur:~/apache-james-3.0-beta4/bin$ | |
thufir@dur:~/apache-james-3.0-beta4/bin$ ll /usr/lib/jvm/java-6-openjdk-common/total 12 | |
drwxr-xr-x 3 root root 4096 Aug 16 00:41 ./ | |
drwxr-xr-x 6 root root 4096 Aug 16 00:41 ../ | |
drwxr-xr-x 3 root root 4096 Aug 16 00:41 jre/ | |
thufir@dur:~/apache-james-3.0-beta4/bin$ | |
thufir@dur:~/apache-james-3.0-beta4/bin$ sudo update-alternatives --config java | |
[sudo] password for thufir: | |
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:~/apache-james-3.0-beta4/bin$ | |
thufir@dur:~/apache-james-3.0-beta4/bin$ cat /etc/environment | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" | |
JAVA_HOME="/usr/lib/jvm/java-6-openjdk-common" | |
thufir@dur:~/apache-james-3.0-beta4/bin$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment