When you need to use operating system-related variables (for example: file separators, newline characters) in your program, Java provides static methods for the System class getenv () and GetProperty () to return systems-related variables and properties, and the variables returned by the Getenv method are mostly system
I. Unpacking and installing the JDKEnter the directory where the Jdk-6u14-linux-i586.bin file is located under the shell terminal and then generate a jdk1.6.0_14 directory in the current directoryTwo. Environment variables that need to be configured1. Path environment variable. The function is to specify the command search path, and when executing the command und
I. Unpacking and installing the JDK Enter the directory where the Jdk-6u14-linux-i586.bin file is located under the shell terminal,executes the command./jdk-6u14-linux-i586.bin at this point there will be a protocol, even after hitting enter, when asked whether to agree, enter Yes, return.A jdk1.6.0_14 directory is then generated under the current directory, and you can copy it to any directory. Two. Environment
1. Why do you want to say this question?Think of two years ago just learning Java, was asked to set the environment variables, naturally puzzled, then find the answer online.Now I want to feel that the answer I saw at the time was God-God, vague, not a few said plainly. Of course, it could be that I didn't see it.In short, believe me, read my blog, you don't have
Installed in the C: \ ProgramFiles \ Java \ jdk1.7.0 directory by defaultEnvironment Variable Configuration:Path =.; % java_home % \ binClasspath =.; % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. jar;Java_home = c: \ Program Files \ Java \ jdk1.7.0
After installing JDK on a computer, we can set it to make it usable in the Java
Javac/java/javadoc wait, and after setting the path variable, you can execute the Javac/java tool in any directory. The path value we set here is:%systemroot%/system32;%systemroot%;%systemroot%/system32/wbem;%systemroot%/system32/windowspowershell/v1.0/; C:/Program Files/common Files/thunder network/kankan/codecs; C:/Program Files/microsoft SQL server/90/tools/binn/; C:/Program Files/common Files/ttkn/bin;
Javac/java tool in any directory. The path value we set here is:%systemroot%/system32;%systemroot%;%systemroot%/system32/wbem;%systemroot%/system32/windowspowershell/v1.0/; C:/Program Files/common Files/thunder network/kankan/codecs; C:/Program Files/microsoft SQL server/90/tools/binn/; C:/Program Files/common Files/ttkn/bin; C:/Program Files/common Files/teleca gkfx; C:/Program Files/java/jdk1.6.0_21/binO
I. Unpacking and installing the JDK Enter the directory where the Jdk-6u14-linux-i586.bin file is located under the shell terminal,Executes the command./jdk-6u14-linux-i586.bin at this point there will be a protocol, even after hitting enter, when asked whether to agree, enter Yes, return. A jdk1.6.0_14 directory is then generated under the current directory, and you can copy it to any directory. Two. Environment
Project development has always been adopted is jdk1.5, there is no problem. These two days, because a member is reflected in the installation of the relevant tools, the development of eclipse can not be opened, prompted the current Java version of 1.4, and the need for 1.5. by typing "java-version" in MS-DOS, the version of Java is indeed 1.4. Look at the
I. Environment variables that need to be configured1. Path environment variable. The function is to specify the command search path, and when executing the command under the shell, it looks in the path specified by the path variable to see if the appropriate command program can be found. We need to add the bin directory in the JDK installation directory to the ex
For Beginners Java, the first challenge is to configure a Java development platform for themselves. However, you have to install software such as JDK. For JDK1.5 installation, I think everyone will, that is, keep clicking, installation is easy, but the configuration is not so simple, because it wants us to configure environment
I. Unpacking and installing the JDKEnter the directory where the Jdk-6u14-linux-i586.bin file is located under the shell terminal,Executes the command./jdk-6u14-linux-i586.bin at this point there will be a protocol, even after hitting enter, when asked whether to agree, enter Yes, return. A jdk1.6.0_14 directory is then generated under the current directory, and you can copy it to any directory.Two. Environment va
I. Unpacking and installing the JDK Enter the directory where the Jdk-6u14-linux-i586.bin file is located under the shell terminal,Executes the command./jdk-6u14-linux-i586.bin at this point there will be a protocol, even after hitting enter, when asked whether to agree, enter Yes, return. A jdk1.6.0_14 directory is then generated under the current directory, and you can copy it to any directory.Two. Environment v
I. Unpacking and installing the JDKEnter the directory where the Jdk-6u14-linux-i586.bin file is located under the shell terminal,Executes the command./jdk-6u14-linux-i586.bin at this point there will be a protocol, even after hitting enter, when asked whether to agree, enter Yes, return. A jdk1.6.0_14 directory is then generated under the current directory, and you can copy it to any directory.Two. Environment va
configure the current directory into the CLASSPATH environment variables (the specific configuration method please Baidu).If you imagine compiling, Java C:\Test\HelloWorld, which is the command, specifies the Helloworld.java full path, even if the current directory is C:\Test\. Obviously C:\Test\HelloWorld is a. class file (assuming the Helloworld.class file has
Today, I set the Java environment variable again. I suddenly found that every setting was completed step by step. I didn't know why I needed it. So I searched for it online and found it again.ArticleAnd leave it.Only for record learning. Transferred from:Http://bbs.tech.163.com/bbs/tech_0ik1/147645925.html
After installing JDK on a computer, we can set it to make it usable in the
Summarize some of your own and add some more:To configure environment variables after installing the JDK, there are three main:1 Java_home, the installation directory for the JDK, such as: F:\JAVA\jdk1.6.0_042 CLASSPATH where to find the. class file that you need to execute, such as:.; %java_home%\lib;The front is a point [.] Add a semicolon [;] End with a semico
Method 1: Modify the/etc/profile fileAll user shells have permission to use these environment variables1> execute command at Shell Terminal: vi/etc/profile2> add at the end of the profile file:java_home=/usr/lib/jvm/java-6-sun-1.6.0.15Path= $JAVA _home/bin: $PATHClasspath=.: $JAVA _home/lib/dt.jar: $
I. Unpacking and installing the JDKEnter the directory where the Jdk-6u14-linux-i586.bin file is located under the shell terminal,Executes the command./jdk-6u14-linux-i586.bin at this point there will be a protocol, even after hitting enter, when asked whether to agree, enter Yes, return. A jdk1.6.0_14 directory is then generated under the current directory, and you can copy it to any directory. Two. Environment v
***************************************Why to configure environment variables: 1. The PATH environment variable (window is case-insensitive and must be capitalized under the Linux system).The function is to specify the command search pathWhen executing a command in CMD, it looks in the path specified by the path variable to see if the appropriate command program
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.