This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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.