I'm just trying to open a command prompt window using java program (in eclipse). When i run pgm as below, it's not showing any message
Runtime.getRuntime().exec("cmd");
But when i try to open internet explorer using below line
Runtime.getRuntime().exec("iexplore");
It's throwing below error
Exception in thread "main" java.io.IOException: CreateProcess: iexplore error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at dev.petrofac.ChangeFilePermission.main(ChangeFilePermission.java:17)
iexplore.exe, see about-java-programming.blogspot.com/2007/02/…