• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

its urgent

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic