Install jdk Command 1 in ubuntu. download jdk-6u25-linux-i5862. the easiest way to modify the executable permissions for a jdk-6u25-linux-i586 is to grant all permissions, that is, the chmod777jdk-6u25-linux-i5863. install jdk after self-extracting. /jdk-6u25-linu...
Install jdk Command 1 in ubuntu. download jdk-6u25-linux-i586 2. the easiest way to modify the executable permissions for a jdk-6u25-linux-i586 is to grant all permissions, I .e.: chmod 777 jdk-6u25-linux-i586 3. install jdk after self-extracting. /after the jdk-6u25-linux-i586 is installed, the/home/gong/jdk1.6.0 _ 25 folder 4 is generated. set environment variables, if you are not familiar with vi, you can use the gedit command to start the text editor. compared with the vi command, sudo gedit/etc/environment www.2cto.com can add the following content and save and exit export JAVA_HOME =/home/gong/jdk1.6.0 _ 25 export CLASSPATH = ..: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib PATH = "/usr/loca L/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: $ JAVA_HOME/bin "note: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games in PATH must be retained, otherwise, the system cannot be logged on. 5. execute the following command to make the configuration take effect source/etc/environment 6. verify that the configuration is complete gong @ gong-laptop :~ $ Echo $ JAVA_HOME bash:/home/gong/jdk1.6.0 _ 25: A Directory named gong @ gong-laptop :~ $ Echo $ CLASSPATH.:/home/gong/jdk1.6.0 _ 25/lib:/home/gong/jdk1.6.0 _ 25/jre/lib gong @ gong-laptop :~ $ Echo $ PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /home/gong/jdk1.6.0 _ 25/bin gong @ gong-laptop :~ $ Java-version java version "1.6.0 _ 25" Java (TM) SE Runtime Environment (build 1.6.0 _ 25-b06) Java HotSpot (TM) Server VM (build pipeline 0-b11, author of mixed mode xiangkw
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.