Java Environment Configuration

Source: Internet
Author: User

Features of the Java language

√ Simplicity √ Object-oriented √ distributed √ robustness √ cross-platform √ high performance √ multithreading capability √ Dynamic √ security

Java cross-platform mechanism: the Java language Cross-platform, is implemented through the JVM, different operating system JVM is not the same, but the bytecode file is the same , through the JVM, Convert the same bytecode files into machine-code files of different systems and then run them to achieve cross-platform.

Installation and configuration of Java

Download JDK6 or JDK7 from Oracle's official website (note that JDK Java Development Kit instead of the JRE Java Runtime Environment, theJDK contains the JRE,JRE and the JVM ), and then double-click Install. After the installation is complete, Java does not run immediately and needs to be configured accordingly.

Here is a detail: 32-bit computers do not necessarily have to install 32 JDK and eclipse,64 bits of the computer does not have to install 64-bit JDK and eclipse no matter how many computers, as long as the JDK and Eclipse package can be, Of course, if you follow the configuration of the computer to install the corresponding Jdk,eclipse is also possible, there are cracked version of the 32bit and 64bit Myeclipse10, and can be cracked success. http://www.xiazaiba.com/html/23858.html. Install the JDK as much as possible by following his default installation directory to prevent errors.

How to verify that the JDK is installed successfully : Enter CMD in the run, then the corresponding JDK version will appear when input java-version, the corresponding instruction set will appear when running Javac, and the corresponding instruction set will appear when running Java.

In the crack of time to note: Sometimes run Run.bat when the flash occurs, this may be because the JDK installation is not very appropriate to cause, when editing the Run.bat document, if the contents of the document is Javaw-jar Cracker.jar so can change to Javaw-jar *.jar try, if it is Javaw-jar *.jar, then change to Javaw-jar Cracker.jar try, of course, not necessarily to change to cracker, according to the patch folder in the jar package name change.

How to view a file's suffix name : Click My Computer in the Win7, click organization in the upper-left corner, click Folder and search options, select View, and then find the column that hides the extension, and then remove the tick.

The JDK environment configuration steps are as follows :

1), right-click My Computer, WinXP, in Win7, right-click Computers, properties, advanced system settings.

The following dialog box appears:

2), select the Advanced tab, and click Select Environment variables to see the following dialog box:

3), click "New" in the system variable, enter Java_home in the variable name, enter the root directory of the JDK installation in the variable value, for example "D:\Program files\java\jdk1.6.0_25" and click OK

4), and then create a new "classpath" variable, set the value of the variable to:

“.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar "(To Add. Indicates the current path)

%java_home% is referring to the previously specified java_home

5), then edit "path", the JDK under the bin path set in, path allows the system to identify the JAVA command under any path, set as:%java_home%\bin; (note that the original content in path should not be deleted, add ";" at the end of the original content, and then add %java_home%\bin)

Java Environment Configuration

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.