Install JDK 7 In Ubuntu (with Clojure download)ĬentOS6. Install Tomcat and configure the JDK environment in CentOS Java HotSpot (TM) 64-Bit Server VM (build 24.71-b01, mixed mode) Java (TM) SE Runtime Environment (build 1.7.0 _ 71-b14) Then, enter the terminal to verify whether Java 7 is installed. * 0/usr/java/java7/bin/javac 1100 auto modeġ/usr/java/java7/bin/javac 1100 manual modeĢ/usr/lib/jvm/java-6-openjdk-amd64/bin/javac 1061 manual mode There are 2 choices for the alternative javac (providing/usr/bin/javac ). Root debian:/# update-alternatives - config javac * 1/usr/java/java7/bin/java 1100 manual modeĢ/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode There are 2 choices for the alternative java (providing/usr/bin/java ). Root debian:/# update-alternatives - config java because I previously gave a higher priority of 1100, the default value is now under/usr/java/java7. If you have installed openJDK, you can select it here. # Update-alternatives - install/usr/bin/javac/usr/java/java7/bin/javac 1100 java-package provides the ability to build a Debian package from a Java binary distribution by running make-jpkg (with archive files downloaded from providers listed below).# Update-alternatives - install/usr/bin/java/usr/java/java7/bin/java 1100 Debian recommends the use of OpenJDK packages ( openjdk-7-jdk / openjdk-7-jre) instead of non-free packages created by this utility. update this command to let the system know which command to use. add to the bin of the system and use the update-alternatives command to maintain the soft connection of the system. bashrc switch to your user and then under source. bashrc (do not write/etc/environment and do not want to affect global system environment variables)Įxport CLASSPATH =.: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib For example, java 8 is in/usr/java/java8, java 7 is at/usr/java/java7Ĭreate the/usr/java directory, decompress the package, and move it to/usr/java/java7. Here we put it in/usr/java and use numbers to indicate the version. Debian (Wheezy) install Java environment/replace OpenJDK with SUN JDKīecause the project needs to install the Java environment on the machine.ġ, go to the download, select the Accept License AgreementĢ, # Find a directory to put sun JDK.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |