Set java path variables

set-java-path-variables

Install the internal environment to set java path variables:

   If you want to set java path variables, firstly, you have to set up an environment for using Java language, the following section will help you to download and install Java on your personal computer. Follow these steps to install the Java environment.
   Java SE can be downloaded for free at the following link Download Java. You should download a Java version that is compatible with the operating system that you are using.
   The following commands help download and run the .exe file to install Java on your computer. Once you have Java installed on your computer, you need to install the environment variable to the correct installation directory:

   Set java path variables for Window 2000 / XP:

    Suppose you have installed Java in the directory c: \ Program Files \ java \ jdk. To set java path variables:
Right-click on 'My Computer' and select 'Properties'.
Click the 'Environment variables' button under the 'Advanced' tab.
Now notice the 'Path' variable so that it also contains the path to execute Java. For example, if the current path is set to 'C: \ WINDOWS \ SYSTEM32', then you change the path to read 'C: \ WINDOWS \ SYSTEM32; c: \ Program Files \ java \ jdk \ bin'.

   Set java path variables for Windows 95/98 / ME:

    Suppose you have installed Java in the directory c: \ Program Files \ java \ jdk. To set java path variables
Edit the 'C: \ autoexec.bat' file and add the following line to the end:
'SET PATH =% PATH%; C: \ Program Files \ java \ jdk \ bin'

   Set java path variables for Linux, UNIX, Solaris, FreeBSD:

Set java path variables should be set to point to the binary Java files that have been installed. You should refer to the shell documentation if you are having trouble with this step.

For example, if you use bash as your shell, then you should add the following line at the end of '.bashrc: export PATH = / path / to / java: $ PATH'

The popular Java Editors:

    To write Java programs, you will need a Text Editor. There are many types, and you should use one of the following types:
  •    Notepad: On Windown devices, you can use a simple text editor such as notepad.
  •    Netbeans: An open-source IDE program that is free, you can download it at the following link:http://www.netbeans.org/index.html.
  •    Eclipse: An IDE developed by the eclipse open source community, can be downloaded athttp://www.eclipse.org/

Comments