More specifically, the CLASSPATH can be reached by: String classpath = System.getProperty("java.class.path");
W. PS: This is a recurrent question...
Joined: Aug 02, 2001
Thanks for your replies...i am aware of the System.get/setProperty. The changes done by System.setProperty are only visible to the current JVM. I want to permanently changes the Windows environment variables. If possible ? How this functionality can be achieved ? Thanks in advance Regards Rakesh Nagar
Joined: Jul 13, 2001
Try this : Runtime.getRuntime().exec("set CLASSPATH=...."); W.