14
Jan

Please help! Many people keep getting the error: that myappname.exe needs to close. All i have in the zip file is myapp.exe… nothing else! Please tell me what im doing wrong!


Answer:
You might be trying ti just send the exe file. java doesn't work that way.

In order to maintain its cross-platform capability, Java uses a Virtual Machine (JVM) to execute its code. This means that you can't create an executable file in the .exe format.

What you can do though is create a .jar (java archive) file that will execute in the same way an .exe file would.

How does this work?

A .jar file is associated with the java app that lets you run your programs. The archive contains a list of the necessary .java files and a special file that tells the JVM how these files relate to each other. Once you've created your archive you can run it just like an .exe file, the only difference is that the .jar file will run on any machine while the .exe is limited to windows.

This will show you how or you can search for others.

http://neptune.netcomp.monash.edu.au/Jav…


Answer:
yah…. how did you get .exe from a java program?

you could send them the .class files, and your peoples can run the java run-time to run your program.

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

Tags: , , , ,

This entry was posted on Monday, January 14th, 2008 at 10:09 pm and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment