First, download eclipse for JEE
1. Baidu Search Eclipse for JEE
If the official website download is too slow, here to share the Baidu network disk download
Baidu Network Disk Download:(64-bit)Http://pan.baidu.com/s/1slxsKLv
Second, install Eclipse for JEE
After the download is a. zip format of the compressed package, extracted after the file directory is as follows:
Create a desktop shortcut
Once created, you can see the Eclipse icon on your desktop
Third, configure the operating environment JRE
Window-->preference
Expand Java-->installed JRE
Click Add to add the JRE runtime environment
Click Next
Click Directory.
Click Finish to tick the JRE that you just imported
Click OK to import the JRE's operating environment.
Iv. create a project and write an introductory Hello World 1. Create a project: File-->new-->javaproject
2. Fill in the project name, select the operating environment of the Java program, click Next
3. After clicking Finish, the created project appears as
4. Create a package, class
Note the naming conventions for packages, which come out in new class
Fill in the class name, tick public static void main (string[] args), click Finish to see the following code snippet
Testjre.java
Package Com.scd.hello; Public class Testjre { /** @param args * / Publicstaticvoid main (string[] args) { // TODO auto-generated method Stub }}
The entry of the program is inside the main function, filling in the System.out.println ("Hello World");
PackageCom.scd.hello;ImportJava.io.PrintStream; Public classTestjre {/** * @paramargs*/ Public Static voidMain (string[] args) {//TODO auto-generated Method StubSystem.out.println ("Hello World"); PrintStream PS=System.out; Ps.println ("HelloWorld"); }}
4. Running the program
Hover your mouse over the code snippet and right-click-->run As-->java Application
View run results in the terminal
Java integrated development environment--eclipse for EE configuration JRE Runtime Environment