Click to See Complete Forum and Search --> : JBuilder8 and Compiling .EXE files
WillemM
January 14th, 2003, 03:24 AM
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.
abramia
January 14th, 2003, 06:16 AM
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.
WillemM
January 14th, 2003, 06:30 AM
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 ?
Goodz13
January 14th, 2003, 10:16 AM
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/613f99/modules/04/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.
abramia
January 15th, 2003, 12:27 AM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.