Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

its urgent

 
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
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"
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.
 
What's wrong? Where are you going? Stop! Read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic