So far the only way I can execute my code is either from the DOS command prompt or from a IDE, is there a way to make type of java executable? I mean I know of java based appliactions that just run like a exe file, how does it work?
Three answers:
Mahesh Ramichetty
2006-06-22 23:31:19 UTC
There are certain ways in which the java based application can be made as an self executable.Eg applets,web applications that are developed using jsp and servelts.Enterprise applications that are developed using Ejb's etc. These applications are compiled and archived in to the form of jar or ear or war.The webapplications are deployed in the server as the war files.The enterprise applications are deployed as the ear files in the Application server.So once these are deployed in the server and the server starts up these applications are ready to run.The java applets also fall under the same category these can be viewed using the applet viewer or java enabled browser.
dgitts
2006-06-22 15:58:40 UTC
you will have to compile your code once you are absolute that you have no kind of errors, syntax / runtime then there is a command you can use in DOS prompt or select one of the options in the IDE to compile the code and an executable file will be structured. :)
ihoston
2006-06-27 21:26:46 UTC
make .jar
then call that using someother exe programme
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.