I genius official Free Tutorials II (expansion): Installation and configuration of the Java Software development environment

Source: Internet
Author: User

First, install the development environment installation JDK

Download JDK URL: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html


650) this.width=650; "src=" http://img.blog.csdn.net/20150809161647886 "/>


Install JDK: Double-click the downloaded. exe file


650) this.width=650; "src=" http://img.blog.csdn.net/20150809161707507 "/>


650) this.width=650; "src=" http://img.blog.csdn.net/20150809161714182 "/>

Click Next

650) this.width=650; "src=" http://img.blog.csdn.net/20150809161717678 "/>

The installation directory can be modified or not modified

650) this.width=650; "src=" http://img.blog.csdn.net/20150809161721367 "/>


Click Install after ok (next), the software starts to install, the installation of JDK will pop up the JRE installation screen, select whether you want to change the installation directory

650) this.width=650; "src=" http://img.blog.csdn.net/20150809161724308 "/>


If you need to change the installation directory, it is best to put together with the JDK installation directory, JDK8.0 and the previous version installation is slightly different, this JRE folder needs to create its own

650) this.width=650; "src=" http://img.blog.csdn.net/20150809161732605 "/>


Close when you're done

650) this.width=650; "src=" http://img.blog.csdn.net/20150809161736271 "/>

Install Eclipse

Download URL: http://www.eclipse.org/downloads/

650) this.width=650; "src=" http://img.blog.csdn.net/20150809161739643 "/>


Click to jump to download page

650) this.width=650; "src=" http://img.blog.csdn.net/20150809161742401 "/>


After the download, unzip the folder after you double-click the Eclipse.exe file to run, in the Eclipse.exe file right click, the mouse moved to the "Send to", the new menu will pop up, click "Desktop Shortcut", so the desktop has a shortcut, You can then double-click the Eclipse shortcut on your desktop to start the Eclipse software.


Configuration environment Variable Configuration path

650) this.width=650; "src=" http://img.blog.csdn.net/20150809162528096 "/>

650) this.width=650; "src=" http://img.blog.csdn.net/20150809162532750 "/>


XP user does not have the 1th step interface, directly from the 2nd step, followed by the same steps

650) this.width=650; "src=" http://img.blog.csdn.net/20150809162538137 "/>


You can do this in numeric order.

The purpose of configuring environment variables is to make it easy to use commands in the Command Prompt window.

Press and hold 650) this.width=650; "src=" http://img.blog.csdn.net/20150809164552829 "/> (Win key), press R (or start-run), the lower left corner pops up the Run box, Enter CMD in the input box click OK button, or press ENTER (enter) key to pop up the command Prompt window.

The cmd entered here is the command, and the C:\Windows\System32\ is executed when determined. Cmd.exe file, because the system is installed in the path of the system variable configuration of the Cmd.exe file, so input cmd in the run can execute the Cmd.exe file, and we configured the JDK directory bin, is to use Java development of some commands to simplify.

For example: The bin directory has the Javac.exe file, this is the Java compiler, drag this file directly to the Command Prompt window, will automatically generate the full name of the file (path name + filename) string (manually enter the same string character effect), Doing so can also compile Java source code, but it is too cumbersome. After configuring the environment variables, you can use the Javac.exe file to compile the Java source code by typing Javac directly from the Command Prompt window.

It is recommended to directly configure the bin directory under the JDK directly under the path of the system variable, because the Windows system is a multi-user system, and if the user variable + system variable is used, it may cause the configuration to be unusable, the compatibility is poor, and the configuration system variable is available to all users in the current system. Generally, the above problem does not occur.

It is also important to note that when the environment variable is configured, the cmd command is used to open a new command-line prompt window when testing. You cannot configure environment variables before you open the CMD window in the test.

Configure Classpath


650) this.width=650; "src=" http://img.blog.csdn.net/20150809164648327 "/>

When using the Java command to execute a compiled program, you need to find out where the compiled bytecode (class) file exists, and the purpose of configuration classpath is to set the Java command to find the directory of the class file. If you do not configure the default in the current directory lookup (current directory: If the command Prompt window displays c:\users\x>_ represents the current directory is C:\Users\x), if configured, the English format of the period. Represents the current directory; When configuring multiple directories, the intermediate semicolon in English format; Separated, when running a program using Java commands, the JVM will look for the class to be executed in the next directory in the directory configured in Classpath, and if none are found, an error occurs



This article is from the "I Genius Official blog" blog, please be sure to keep this source http://ixueba.blog.51cto.com/10596927/1683121

I genius official Free Tutorials II (expansion): Installation and configuration of the Java Software development environment

Related Article

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.