Beginner java environment and eclipse Basic settings, javaeclipse

Source: Internet
Author: User

Beginner java environment and eclipse Basic settings, javaeclipse

Java Development Environment Settings:

1. Install the java Runtime Environment

Download Jdk and configure the JAVA_PATH path in the system environment variable to the Jdk Installation Directory D: \ jdk1.7.0 _ 51.

2. Add % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin; or % JAVA_HOME % \ bin at the starting position of the system variable ---> PATH variable --> edit ---->;

3. If the system variable ---> CLASSPATH variable ---> does not exist, create the variable CLASSPATH. Otherwise, select the variable ---> edit ---> Add the variable at the starting position .; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar;

Run JAVAC. If many command prompts are displayed, the installation environment is successful!

 

File-> Properties-> UTF-8 Windows setup protocol and development system, code compatibility issues, this is a possible problem in Engineering.
Priject-> Properties-> Java Code Style-> Formatter

 

If the two projects have the same name. in the same development environment, modify. to change the project name, you must modify the name of the project. only the project name can be changed.

.

Right-click and choose Preferences> General> Appearance> Color and Forts> Text Font to adjust the Font.

 

Point to the left side of the Code, Show Line Number, can display row numbers

 

Window-> Preferences-> Java-> Editor-> Content Assist, there is an Auto activation trigger for java box followed by a dot, you can enter 26 uppercase and lowercase letters after the dot to prompt when you type the code.

 

Open Eclipse --> window --> preference ---> Content type ----> Text --> Html ----> Add

Set the file ending with another suffix to verify the style of the desired file. (To avoid Black Pages)

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.