How to Installing the Java Development Kit

 

Installing the Java Development Kit

1. On your computer, open a terminal window.

2. Type java -version

The output includes a line:

Java(™) SE Runtime Environment (build1.X.0_05-b13)

 

is the version number to look at.

  • If this is 7 or greater, you can move on to installing Android Studio.
  • If you see a Java SE version is below 7 or if Java is not installed, you need to install the latest version of the Java SE development kit before installing Android Studio.

To download the Java Standard Edition () Development Kit (JDK):

1. Go to the Oracle Java SE downloads page.

2. Click the Java SE Downloads icon to open the Java SE Development Kit 8 Downloads page.

3. In the box for the latest Java SE Development kit, you need to accept the License Agreement in order to proceed. Then download the version appropriate for the computer you are developing on. Important: Do not go to the demos and samples (the menus look very similar, so make sure to read the heading at the top).

4. Install the development kit. Once the installation of the JDK is completed — it should only take a few minutes — you can confirm it’s correct by checking the Java version from the command line.

5. Open a terminal window and enter Type java -version again to verify that installation has been successful.

6. Set the JAVA_HOME environment variable to the installation directory of the JDK.

 

Windows:

1. Set JAVA_HOME to the installation location.

2. Start > Control Panel > System > Advanced System Settings > Environment Variables System Variables > New

  • Variable name: JAVA_HOME
  • Variable value: C:Program FilesJavajdk1.7.0_80 (or whatever version your installation is!) 3. If the variable already exists, update it to this version of the JDK.

4. Verify your JAVA_HOME variable from a cmd.exe terminal: echo %JAVA_HOME%

See also: https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/

 

Mac:

1. Open Terminal.

2. Confirm you have JDK by typing “which java”.

3. Check that you have the needed version of Java, by typing “java -version”.

4. Set JAVA_HOME using this command in Terminal: export JAVA_HOME=`which java`

5. enter echo $JAVA_HOME to confirm the path.

Linux:

See: https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/

Important: Don’t install Android Studio until after the Java JDK is installed. Without a working copy of Java, the rest of the process will not work. If you can’t get the download to work, look for error messages, and search online to find a solution. Basic Troubleshooting:

 

  • There is no UI, Control Panel, or Startup icon associated with the JDK.
  • Verify that you have correctly installed the JDK by going to the directory where you installed it. To identify where the JDK is, , look at your PATH variable and/or search your computer for the “jdk” directory or the “java” or “javac” executable.

The post How to Installing the Java Development Kit appeared first on Android News.

Check Also

Download Android Pie based OxygenOS for Redmi Note 5 Pro

Now you can Update Redmi Note 5 Pro to Android 9 Pie by installing latest OxygenOS ROM. Redmi Note 5 pro is a popular device and there are already have lots of custom ROM available for the device. The OxygenOS is the latest addition to the list and which is ported from OnePlus 5T. If you want to taste Android 9.0 Pie ROM on Redmi Note 5 Pro then follow our guide to Download OxygenOS Redmi Note 5 Pro. XDA Senior Member LeekGeek released the initial build of OxygenOS for Redmi Note 5 Prowhich is based on Open beta build but stable enough to use it as a daily driver. The ROM comes with many Android Pie and OxygenOS features but may contain some bugs. You need to be rooted, and TWRP installed on your device to use this ROM. Download Android Pie based OxygenOS for Redmi Note 5 Pro from below. The ROM is an initial Android Pie build for Redmi Note 5 pro and missing many features but it’s improved with time, but the good news is you can experience Android Pie based OxygenOS on Redmi Note 5 ..

Leave a Reply

Your email address will not be published. Required fields are marked *