Hi everyone! Once I read from a sitepointer,
I would like to run a java file directly [not using cmd] by clicking on a simple icon or button.Code:Instead of executing the command directly, use this instead: Code: String[] cmd = new String[3]; cmd[0] = "cmd.exe"; cmd[1] = "/C"; cmd[2] = theInput; You need to hit the windows command interpeter first or you won't be able to do much. theInput is your command.
Could anyone provide some help.





Bookmarks