Tuesday, May 11, 2004

Checking the Current CLASSPATH Programmatically

Often, it is helpful to find the current classpath. This can be done from within a Java program by using the following code:


System.out.println(System.getProperty(“java.class.path”));


This line prints out the current value of CLASSPATH to the OutputStream.

Santhosh Ananthakrishnan

No comments: