CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Location
    India, Kerala
    Posts
    30

    creating exe from java classes

    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

  2. #2
    Join Date
    May 1999
    Posts
    78

    Re: creating exe from java classes

    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.


  3. #3
    Join Date
    Apr 1999
    Location
    Toulouse, France
    Posts
    8

    Re: creating exe from java classes

    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

  4. #4
    Guest

    Re: creating exe from java classes

    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.


  5. #5
    Join Date
    Apr 1999
    Posts
    18

    Re: creating exe from java classes

    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 : [email protected] Hope this helps you.


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

    you can refer the following site for more information:
    http://java.sun.com/docs/books/tutor...king/invo.html



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured