CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284

    JBuilder8 and Compiling .EXE files

    Is it possible to make *.exe files with Jbuilder 8 personal ? I only get classes out of my sourcecode when I select Project -> Make ...

    It's a nice program, but it would be better if I got an executable from my sourcecode. So I can start generating passwords.
    WM.

    What about weapons of mass construction?

  2. #2
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    137
    Hi Willem,
    I may be stating the obvious here (and forgive me if I am :-), but have you looked at Borland's JBuilder web-sites? These two may be helpful:

    http://info.borland.com/devsupport/jbuilder/

    http://info.borland.com/newsgroups/

    Hope this helps.

    Good Luck,
    Avi.

  3. #3
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284
    I couldn't find what I needed there.
    It looks like I need some sort of compiler for native exe files.

    Is this true, of am I doing something wrong ?
    Last edited by WillemM; January 14th, 2003 at 07:52 AM.
    WM.

    What about weapons of mass construction?

  4. #4
    Join Date
    Jan 2002
    Location
    Halifax, NS, Canada
    Posts
    985
    You can't make an exe with Java. You can however make a JAR file act like an executable (exe). A Jar file is basically a Zip file. Jar's are a way of packaging a program so that all the classes that you've created are in one file. Now if you specify the class that has the Main method in your manifest file, located in meta-inf directory in your Jar file, once you double click the Jar file, if you are using Windows, Windows will look in the registry for the assoiated program, than run your jar with javaw. Thus executing your program.

    http://java.sun.com/docs/books/tutorial/jar/basics/
    http://csdl.ics.hawaii.edu/~johnson/...jar-files.html

    I know that JBuilder Enterprise edition will create the Jar file for you with a wizzard, but I'm not sure about the personal edition.

  5. #5
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    137
    Hi again Willem,
    So I assume you want to create a "native executable" from your java code. If this is correct, then I think the following will help you (if you haven't already seen it):

    http://mindprod.com/jglossexe.html#EXE

    And don't forget to follow the "native compiler" link -- which takes you to:

    http://mindprod.com/jglossnativecompiler.html

    Hope this helps you.

    Good Luck,
    Avi.

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