I did below:
subst A: "C\Desktop"
Now from java code:
String command= "java -jar A:\test.jar"
Process process = Runtime.getRuntime().exec(command);
The JVM seems to be hanged here and never executing this line. When i run through "java -jar C:\Desktop\test.jar". It executes succefully.
Does Runtime.getRuntime doesn’t resolve virtual hardrive?
Thanks
I assume you have
\\tand not\tand you are reading from the error stream so you can see any errors.\tis the tab character.(The joys of MS-DOS using
\as a path separator 😉Dump out the error you are getting and you should see the problem.