Install and configure JAVA environment variables under Centos6.3
Today, we are helpless. In the Centos system, the virtual machine is suspended even when the JAVA environment is configured. Use this document to remember the "Shame" of today ".1. view the version of the Cento
There are two types of environment variable configurations in Java:Method One:Click on: "My Computer"-(right) "Properties"-"advanced"-"Environment variables", pop up the Windows environment variables configuration card.Perform three actions under the System
1, the environment variable configuration (here for XP system computer:)Install the JDK software first.Then on my Computer (right-click)--Properties--high-level--environment variables--System variables (note)-New (new two path and classpath paths)Variable name (N): PathVariable value (V): C:\Program files\
First, the installation of the JDKTwo installation prompts appear during installation: the first is to install the JDK, the second is to install the JRE, and two is recommended to be installed in a different folder in the same Java folder.Second, configure environment variablesComputer → properties → advanced system settings → advanced → environment
For details about how to configure path and classpath for java environment variables, pathclasspathAt that time, I was only concerned about how to do this when I first started learning java. Now I will go back and look at the problem and start with the environment variable c
1. Installing the JDKNote that the installation to2. Configure Environment variables:Reference Answer:Java_homeD:\Program files\java\jdk1.5.0_10PATHD:\Program Files\java\jdk1.5.0_10\binCLASSPATH.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (Note the preceding dot and semicolon must not be lost, and the middle, the semicolon in the back should not be lost)F
If you just want to have Java running environment, then this step can be omitted, because after installation you will find that the PATH environment variable has increased C:\ProgramData\Oracle\Java\javapath, enter the path will find Java.exe. When I set my own path, I deleted it, and my little friends could try not to
Install the JDK Wizard for related parameter settings. As shown in figure:
Installing the program's related features, as shown in the figure:
Select the path of the installation, either customized or default to the path. As shown in figure:
After the successful installation, the test is really successful installation, click the "Start"----"Run"----input CMD, in the command prompt input "java-version" and press ENTER, the following figure, that
The new architecture to go online, these two days began to prepare analysis, today is directly into the Java_home Lib directory to execute the JAVA-CP Sa-jdi.jar Sun.jvm.hotspot.HSDB, and then reported a mistake: This is where the 144 version, it is strange, although the machine has been installed for a long time, there is no guarantee that there are multiple versions, but to attach the process is to use the idea, should use the default system
After the JDK is installed successfully, the test is really installed successfully, enter "Java-version" at the command prompt and press ENTER, if the following version information appears:
Java Version "1.6.0_26"
Java (TM) SE Runtime Environment (build 1.6.0_26-b03)
Java
1. First download installs the JDK installs the package, the installation process attention installs to the other disk, does not install to the C drive to be good.2. Open My Computer--Properties--advanced--Environment variables:3. New system variable java_home and CLASSPATH variable name: Java_home variable Value: C:\Program files\java\jdk1.7.0 variable name: CLA
Java ways to read custom environment variables System.getproperty and system.getenv
The origin of the problem, want to test in the test machine environment, then do not want to modify the online environment, automatically remove the local test code, the first response i
There are 3 main environment variables used in JAVA under Windows, Java_home, CLASSPATH, and PATH.Java_home points to the installation path of the JDK, such as C:\jdk1.5.0_06, you should be able to find the bin, Lib and other directories under this path.(Tonight with the new system configuration, do not know how to add bin to run in Cmd, Java_home=c:\jdk1.5.0_06\
The path variable has a lot of content, because it is possible to switch the JDK frequently during software development, so avoid modifying path, variableD:/jdk/bin the d:/jdk of a different changeThe idea is: in order to solve this problem, we should try to abstract it as far as possible (take it out) and let it remain the same.This creates an environment variable, java_homePath: You can run the Javac command under any path2.classpathThe
JDK as a Java development environment, the JDK must be installed on the computer.1. Download JDKHttp://rj.baidu.com/soft/detail/14459.html?ald Download the latest version of the JDK jdk-8u11-windows-i586.1406279697,2, enter the download interface can choose the required Java version according to their own needs, respectively, there are j2ee,javase,javame,3. Then
System variables → new java_home variable.Variable value fill in the JDK installation directory (I am E:\Java\jdk1.7.0)
5System variables → find Path variable → editEnter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;System variables → new CLASSPATH variableVariable values are filled in.; %java
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.