This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
"JavaRanch, where the deer and the Certified play" - David O'Meara
netharam ram
Ranch Hand
Joined: Aug 09, 2001
Posts: 202
posted
0
Hi,Cindy is there any method to set the classpath at runtime using any method.Is there any way of running dos commands too,for Runtime.exec()will accept only exe files as parameters
Peter den Haan
author
Ranch Hand
Joined: Apr 20, 2000
Posts: 3252
posted
0
Originally posted by netharam ram: Hi,Cindy is there any method to set the classpath at runtime using any method.
No, except by instantiating new class loaders.
Is there any way of running dos commands too,for Runtime.exec()will accept only exe files as parameters
Runtime.exec() will run DOS commands as well, you just need to run the command interpreter. Your COMSPEC environment variable will give its name; on NT, it's cmd.exe. For example, Runtime.exec("cmd.exe /c dir > \\dir.txt"); will create a directory listing in the "\dir.txt" file. - Peter