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