Enviroment Set UP for JAVA

If you are still went to set up your environment for Java programming language, then this article guides you on how to download and set up Java on your machine. Following are the steps to set up the environment.

Download JAVA SE from download link.

Once you installed Java on your machine, you'll got to set environment variables to point to correct installation directories −

Setting Up the Path for Windows


Assuming you've got installed Java in c:\Program Files\java\jdk directory −

  • Right-click on 'My Computer' and choose 'Properties'.
  • Click the 'Environment variables' button under the 'Advanced' tab.
  • Now, alter the 'Path' variable in order that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.

Setting Up the Path for Linux, UNIX, Solaris, FreeBSD


Environment variable PATH should be set to point to where the Java binaries are installed. ask your shell documentation, if you've got trouble doing this.

Example, if you employ bash as your shell, then you'd add the subsequent line to the top of your '.bashrc: export PATH = /path/to/java:$PATH'

Popular Java Editors


To write your Java programs, you'll need a text editor. There are even more sophisticated IDEs available within the market. except for now, you'll consider one among the subsequent −

  • Notepad − On Windows machine, you can use any simple text editor like Notepad (Recommended for this tutorial), TextPad.
  • Netbeans − A Java IDE that's open-source and free which may be downloaded from https://www.netbeans.org/index.html.
  • Eclipse − A Java IDE developed by the eclipse open-source community and may be downloaded from https://www.eclipse.org/.