Click to See Complete Forum and Search --> : creating exe from java classes


rajesh
July 29th, 1999, 08:06 AM
After we create an application using only pure java (ie., no native interface) using these classe files and the type of platform chosen to deploy it , is it possible to generate an exe (independent) say for ex, windows platform and just run this exe. As if this exe were being created by c++ or VC++, as it is easy to create java applicaions. infact I had been into MFC also for creating apps.
Please give information !!!
Thankyou....
Bye
Rajesh.

rajesh

Saeed R
July 29th, 1999, 04:16 PM
I am not so much experienced ,but from what i know in Java ,you can not.
Unless you get something say C++ to call up your Java virual code from its C++ exe file.

A. Apvrille
August 17th, 1999, 09:54 AM
Hello,
Yes it is possible to create an exe for a specific platform. I know some tools do it (maybe Symantec, have a look at their web page).
But you cannot do that in standard with Sun's JDK (to my knowledge).
Ciao,

--
Axelle Apvrille - MSI

October 15th, 1999, 10:41 PM
Try this code in VB, Create an exe file from it. The exe file will call the bat
file which is used to start your program.
Here is the VB code:

Private Sub Form_Load()

Dim progID

Form1.Visible = False
progID = Shell("C:\run.bat")
AppActivate progID

End
End Sub

Here is the bat file code:

java XXXXXX

The XXXXX is the name of your class file

Hope it helps FK.

Sachin
October 16th, 1999, 12:43 AM
If you use a Visual Cafe version you can get a executable program, it could be a stand alone application or a Frame Application. I really don't know if exists a free copy about it, but if you can I can compile and return you executable file, my e-mail is : sachin.deshmukh@mailcity.com Hope this helps you.


Another way is to use JRE. See the example at http:\\www.javasoft.com/products/jdk/1.1/jre/example/index.html. Regards, Lotten

you can refer the following site for more information:
http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html