Difference between revisions of "SUNScholar/Prepare Ubuntu/S03"
Jump to navigation
Jump to search
| Line 7: | Line 7: | ||
Type as follows: | Type as follows: | ||
| + | |||
| + | ;''Note: For Ubuntu 12.04, install "default-jdk". With the Tomcat install during installation using "tasksel" the "default-jre" is installed.'' | ||
sudo apt-get install sun-java6-jre sun-java6-jdk | sudo apt-get install sun-java6-jre sun-java6-jdk | ||
| − | |||
| − | |||
List the Java alternatives by typing as follows: | List the Java alternatives by typing as follows: | ||
| Line 16: | Line 16: | ||
You should get the following | You should get the following | ||
| − | |||
;''Note: For Ubuntu 12.04, you get "java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64" listed.'' | ;''Note: For Ubuntu 12.04, you get "java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64" listed.'' | ||
| − | Make it available system wide: ''Note: For Ubuntu 12.04, this is not needed.'' | + | java-6-sun 63 /usr/lib/jvm/java-6-sun |
| + | |||
| + | Make it available system wide: | ||
| + | ;''Note: For Ubuntu 12.04, this is not needed.'' | ||
sudo update-java-alternatives -v -s java-6-sun | sudo update-java-alternatives -v -s java-6-sun | ||
| + | |||
The screen output should be something like the following. | The screen output should be something like the following. | ||
<pre> | <pre> | ||
Revision as of 11:25, 5 December 2013
Step 3. Install Java Software Dependencies
Please ensure you have enabled the Ubuntu partner repositories before continuing.
Step 3.1: Install Oracle/SUN Java 6 Run Time
Please see: http://www.webupd8.org/2013/02/oracle-releases-updates-for-java-7-jdk.html for the latest news.
Type as follows:
- Note: For Ubuntu 12.04, install "default-jdk". With the Tomcat install during installation using "tasksel" the "default-jre" is installed.
sudo apt-get install sun-java6-jre sun-java6-jdk
List the Java alternatives by typing as follows:
sudo update-java-alternatives -l
You should get the following
- Note: For Ubuntu 12.04, you get "java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64" listed.
java-6-sun 63 /usr/lib/jvm/java-6-sun
Make it available system wide:
- Note: For Ubuntu 12.04, this is not needed.
sudo update-java-alternatives -v -s java-6-sun
The screen output should be something like the following.
resetting java alternatives update-alternatives: using /usr/bin/gij-4.4 to provide /usr/bin/java (java) in auto mode. update-alternatives: using /usr/bin/gkeytool-4.4 to provide /usr/bin/keytool (keytool) in auto mode. update-alternatives: error: no alternatives for mozilla-javaplugin.so. update-alternatives: using /usr/bin/gorbd-4.4 to provide /usr/bin/orbd (orbd) in auto mode. update-alternatives: using /usr/bin/grmid-4.4 to provide /usr/bin/rmid (rmid) in auto mode. update-alternatives: using /usr/bin/grmiregistry-4.4 to provide /usr/bin/rmiregistry (rmiregistry) in auto mode. update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so. update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java to provide /usr/bin/java (java) in manual mode. update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/keytool to provide /usr/bin/keytool (keytool) in manual mode. update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/orbd to provide /usr/bin/orbd (orbd) in manual mode. update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/rmid to provide /usr/bin/rmid (rmid) in manual mode. update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in manual mode. update-alternatives: error: no alternatives for mozilla-javaplugin.so. update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
- Note. Do not worry about error messages as long as the main "java" link is ok.
Step 3.2: Install Java Ant Compiler
Type as follows:
sudo apt-get install ant ant-optional
PREVIOUS
NEXT
