Leilin Peng Share: Java development environment configuration

  In this section we will introduce how to build a Java development environment.

  window system installed java

  Download JDK

  First we need to download java development kit JDK, click here to download.

  JDK installation according to prompts to download, install JDK when there will install the JRE, install it together.

  Installation JDK, installation can customize the installation directory and other information, for example, we select the installation directory is C: \ Program Files \ Java \ jdk1.7.0.

  1. After installation is complete, right-click "My Computer" and click "Properties";

  2. Select the "Advanced" tab, click on the "Environment Variables";

  Then the screen will appear as shown below in FIG.

java environment variable configuration

  Set three properties in the "System Variables", JAVA_HOME, PATH, CLASSPATH (capitalization does not matter), If there is already then click the "Edit" does not exist, click "New."

  Variable settings

  Variable name: JAVA_HOME

  Variable value: C: \ Program Files \ Java \ jdk1.7.0

  // Here is the path to your JDK installation, and can be replaced

  Variable name: CLASSPATH

  Variable values:;.% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar; // in front of a recall. ""

  Variable name: Path

  变量 值:% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin;

  This is the java environment configuration, start the eclipse directly after the configuration is complete, it will automatically configure the java environment.

  JDK is installed successfully test

  1. "Start" ->; "Run", type "cmd";

  2, type the command "java -version", "java", "javac" a few commands, the screen appears, indicating successful configuration environment variable;

JDK is installed successfully test

  Linux, UNIX, Solaris, FreeBSD environment variable settings

  PATH environment variable should be set to point to the location of the Java binaries installed. If you have difficulty, refer shell documentation.

  For example, suppose you use bash as a shell, you can add the following to the end of your .bashrc file: export PATH = / path / to / java: $ PATH

  Popular JAVA development tools

  As the saying goes 工欲善其事必先利其器, we also need money in accordance with good development tools, IDE on the market in the development process is currently a lot of java language, this is what we recommend several java development tools:

  Notepad ++: Notepad ++ is a free code editor under Microsoft Windows environment Download: http://notepad-plus-plus.org/

  Netbeans: free open source java IDE, Download http://www.netbeans.org/index.html

  Eclipse: Another free open source java IDE, Download: http://www.eclipse.org/

  (Editor: Leilin Peng Source: Network | invasion deleted)

Guess you like

Origin www.cnblogs.com/pengpeng1208/p/12581359.html