i've made a project, i want to test this code:
and well, it works... but when i jar the file and add the jar to a html file, it doesnt work in the html file, but the jar file works opening with a batch file.Code:String cmdlocation = "c:\\program files\\Mozilla Firefox\\firefox.exe"; String gweb = cmdlocation try { Runtime.getRuntime().exec(gweb); } catch(IOException ioe){ System.out.println("Did not work"); }
does anyone know how to fix that?




Reply With Quote