1. Wiki首页
  2. Hikey960 Android开发指南
  3. Prepare
  4. JDK installation(Windows)

JDK installation(Windows)

1) Installation steps:

Download the appropriate version from the website:

http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Then double click the .exe file to start the installation, and the installation wizard will guide you to finish the installation.

  • Configuration JDK Environment:
  • Right click the My Computer icon, then click Properties -> Advanced -> Environment Variables;
  • System variable -> New JAVA_HOME variable (Variable values: JDK installation directory. For example: c:\java\jdk1.7.0 );
  • System variable -> Path variable -> edit, append to start with:

%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

  • System variable -> New CLASSPATH variable

(Variable values : .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; )

  • test:

Use command java -version to verify the configuration, for example:

这篇文章对你有帮助吗?