Environment Setup


Domestic Environment Setup

If you would like to line up your own environment for the Java programming language, then this section guides you through the entire process. Please follow the steps given below to line up your Java environment.

Java SE is often downloaded for free of charge from the subsequent link −


You download a version supported by your OS.

You have to follow the instructions given below to download Java and run the .exe to put in Java on your machine. Once you've installed Java on your machine, you'd have to set environment variables to point to correct installation directories.

Setting up the Pathway For Windows 2000/XP

We are presuming that you have already installed Java in c:\Program Files\java\jdk directory-

Go and right-click on My Computer Option and then Select Properties options

  • Check out the find variables button inside the advanced tab options and click on it.
  • Now, change the path variable option so that it can carry the Java Executable. For Instance, if the path is presented to 'C:\WINDOWS\SYSTEM32', then you have to change the path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.

Setting Up the trail for Windows 95/98/ME

We are pre assuming that you've got installed Java in c:\Program Files\java\jdk directory −

  • Edit the 'C:\autoexec.bat' file and add the subsequent line at the top −

SET PATH=%PATH%;C:\Program Files\java\jdk\bin

Setting Up the trail 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.

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

Popular Java Editors

For writing the Java programs, you would like to have a text editor. There are more Knowledgeable IDEs available in the market. except, for now, you'll consider one among the subsequent −

  • Notepad − On Windows machines, you'll use any simple text editor like Notepad (recommended for this tutorial) or TextPad.
  • Netbeans − it's a Java IDE that's open-source and free. It is often downloaded from https://netbeans.org/index.html.
  • Eclipse − it's also a Java IDE developed by the Eclipse open-source community and may be downloaded from https://www.eclipse.org/