i want to know that how we can create exe file in java and how we can execute exe file. and also tell me how to execute exe file from applet. if u have a answer then u can also mail me on the following address.
"tinumehta11979", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks. Sean
#1 - It is not so Urgent that you felt the need to read the naming policy before posting. #2 - DON'T e-mail the answer - how selfish. The rest of the community would like to learn from the answers also - not just one person. #3 - I doubt if you really want an .exe file unless you have some obsure reason that I have never heard of. Put you java commands in a .bat file and that will act as the "executable". #4 - If you want an applet to execute something then it has to be a signed applet - where the person displaying the applet has given you security rights to get "outside the sandbox". If you get that set up then you can start an application (on a windows machine) you can use: Runtime.getRuntime().exec("notepad.exe"); Runtime.getRuntime().exec("cmd /K start run.bat");
"JavaRanch, where the deer and the Certified play" - David O'Meara