Installation and Configuration of JAVA Development Kit (JDK)

Submitted by: 
Language: 

Just in  case you install Android Studio and its SDK Tools separately, you need to setup JDK as shown below:

Installation and Configuration of JAVA Development Kit (JDK)

Download java on the following link:

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

The above link will download all your necessary JAVA files. It will show all the ways to download and configure the JAVA setup. Make a directory by the name of ‘JAVA_HOME’ to store files and variable to refer the directory that consist of java and javac. And will save java_install_dir/bin and java_install_dir both.

For windows: after installing the JDK file in C:\jdk1.8.0_102, you will have to write the following line in the C:\autoexec.bat.file:

set PATH=C:\jdk1.8.0_102\bin;%PATH%
set JAVA_HOME=C:\jdk1.8.0_102

Another way to do it is that you can click on ‘My Computer’ select ‘Properties’ then click on ‘Advanced’ then click on ‘Environment Variables’ then update the PATH value and press OK.

For LINUX: after the SDK is installed in /usr/local/jdk1.8.0_102 and use the C shell. Write the following code in .cshrc file

setenv PATH /usr/local/jdk1.8.0_102/bin:$PATH
setenv JAVA_HOME /usr/local/jdk1.8.0_102/

Note that: You will be able to start your Android app on:

  • Windows XP or any version available after XP
  • MAC OS X 10.5.8 or any version available after it
  • LINUX 2.7 or any version available after it

You can work with:

  • JAVA JDK5 or any version available after it
  • Android Studio

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.