This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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.