• Post Reply Bookmark Topic Watch Topic
  • New Topic

its urgent  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

amitmehta11979@rediff.com
amitmehta11979@hotmail.com
 
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
#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");

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai
java souce code is compiled by javac to .class file.it is interpreted and executed by jvm.so it's platform independent . for more informationmn try java-the complete reference.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!