- Many operating systems use environment variables to pass configuration information to applications.
- Like properties in the Java platform, environment variables are key/value pairs, where both the key and the value are strings.
- The conventions for setting and using environment variables vary between operating systems, and also between command line interpreters.
PATH and CLASSPATH:
- This section explains how to use the PATH and CLASSPATH environment variables on Microsoft Windows, Solaris, and Linux.
- Consult the installation instructions included with your installation of the Java Development Kit (JDK) software bundle for current information.
- The bin directory contains both the compiler and the launcher.
PATH:
- The PATH is the system variable that your operating system uses to locate needed executables from the command line or Terminal window.
- The PATH system variable can be set using System Utility in control panel on Windows, or in your shell's startup file on Linux and Solaris.
- Making changes to the system PATH variable is typically not necessary for computers running Windows or Mac OS X.
Windows: ( 2000/XP/vista/Window 7,8 )
Step 1: Right click on my computer and select properties.
Step 2: Go to the Advance System Settings tab.
Step 3: Click on Environment Variables button.
Step 4: Now alter the path variable so that it also contains the path to JDK installed directory.
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
ConversionConversion EmoticonEmoticon