Introduction to Java Environment configuration

Source: Internet
Author: User

1. Simple: Relatively low-C + + work is eliminated (garbage collection, space allocation).
2. Cross-platform (source code) Portable:Write once,run Anywhere.
C + + Source---target (machine code)---exe executable file
Java Source Code---bytecode (platform-independent structure-neutral class, bytecode propagation is more secure, equivalent to encrypting the source code, because only the JVM can read)---JVM (not cross-platform, so JDK has a platform version)
3. Security: The JVM executes the encapsulated unsafe code without the programmer's execution (pointers can refer to values that are beyond the bounds of the array). ---fly a plane (where you want to fly)
Java: The reference to the object points to the memory space (space must be valid). ---by plane (captain's decision)
4 Object-oriented
5 distributed
6 Robust
7 Architecture Neutrality
8 Explanatory type
9 High Performance
10 Multi-Threading
11 News

SDK: Software toolkit ( may contain JDK)
Jdk:java Development Kit ( includes JRE), complete Java development
JRE: Runtime Environment ( contains JVM), only bytecode can be run
Jvm:java virtual Machines


JAVA_HOME:JDK installation directory
Classpath:java Search class file (bytecode file) path
Path: Paths to System search commands
Source Code of Src.zip:JavaAPI

Javac xxx.java-d Directory: 1. Place the compiled bytecode file in the specified directory
2. If the source file declares that the package structure system will automatically create the folder according to the package structure
(1. Manually compile the Java file with the package, be sure to go to the top of the package, Java also bring the full package name 2.classpath plus the corresponding path)

Environment configuration:

1. Install JDK to directory: D:\Program Files\java

2. Environment variable Add win+break---environment variable---system variable

3. New system variable variable name: Java_home variable value: D:\Program files\java\jdk1.7.0_65

4. Edit Path variable name: PATH variable value:%JAVA_HOME%\BIN;%JAVA_HOME%\JRE;

5. Test win+r---cmd---javac-version if javac 1.7.0_65 done! appears

Note: jdk1.5 does not need to configure the Classpath test at first javac-version do not use Java-version

IDE Configuration:

MyEclipse:

Window---Preferences---installed jres---Add---standard VM---Directory (D:\Program files\java\jdk1.7.0_65)--- Finish---tick jdk1.7.0_65---OK

Tomcat:

Tomcat installation directory: D:\Program files\tomcat8

Window---Preferences---myeclipse---Servers---tomcat---tomcat 8.x---tick enable---Browse (D:\Program files\tomcat8)-- -JDK---Tomcat 8.x JDK name (dropdown to jdk1.7.0_65)

Personal habits:

Code supplement: Window---Preferences---Java---Editor---Content Assist---Auto activation under auto activation triggers for Java: ABCDEFGHIJKLMNOPQRSTUVWXYZ.

Delay Time: Window---Preferences---Java---Editor---Content Assist---Auto activation with auto activation delay (ms) set to 500

Default encoding: Window---Preferences---general---Workspace---Text file encoding select UTF-8

Window---Preferences---myeclipse---File and Editors---JSP---Encoding (dropdown UTF-8)

Introduction to 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.