Page 310 - CITS - Computer Software Application -TT
P. 310
COMPUTER SOFTWARE APPLICATION - CITS
What is the path ?
After installing Java on your computer, it’s important to configure the PATH environment variable. This configuration
allows you to conveniently execute Java-related executables (such as javac.exe, java.exe, javadoc.exe, etc.)
from any directory without the need to specify the full path to the command.
If you don’t set the PATH environment variable, you would indeed have to specify the full path each time you run
a Java command, like this:
Without the PATH variable configuration, this full path specification is necessary for running Java executables.
What is Classpath?
The classpath is a system environment variable utilised by both the Java compiler and the JVM (Java Virtual
Machine).
It serves as a reference to help these components locate the necessary class files.
297
CITS : IT&ITES - Computer Software Application - Lesson 78 - 84
78