How do I make and EXE?
3 posts in topic
Flat View  Flat View

Posted By:   Mark_Perez
Posted On:   Wednesday, October 24, 2001 07:56 PM

I am using JBuilder 5. I would like to know how i can convert a small program I created to an exe so that i can run it anytime by just double clicking the exe. I am super new to java...Thanks!


Re: How do I make and EXE?

Posted By:   Stathis_Alexopoulos  
Posted On:   Sunday, October 28, 2001 04:02 AM

Hi Mark

Java was created with cross-platform in mind. If you want to run your programs only on Microsoft platforms does it worth to write them in Java?

VisualBasic and Delphi they have everything that you will need and they are faster, more convinient, more stable and more beautifull.

I have used these products for many years and currently i am using Java. I lost many helpfull tools and i made my job harder.

From the other side i am writing a class and later i am using that class from a server program that runs on Unix or from a user-interface program that runs usually on Microsoft. But who cares where the program is running and how will communicate with the others? It is entirely on Java technology.

If you want to do it in the half way, think twice.

By the way, if you just want to double-click and run, try to pack it on a JAR, and create a proper manifest. JBuilder has an Archive Wizard which is making that job.

Re: How do I make and EXE?

Posted By:   Luigi_Viggiano  
Posted On:   Thursday, October 25, 2001 01:26 AM

This is a nice trick to make the exe with JBuilder 3.5 and above:

Go in the JBuilder5/bin directory and check there... There are some files "bcj.exe, bmj.exe, dbpilot.exe,..." and some others with the same name but ending with a "w".

D:jbuilder5in>dir j*.exe j*.config /os
Il volume nell'unità D non ha etichetta.
Numero di serie del volume: 28F7-11CD

Directory di D:jbuilder5in

04/09/01 10.30 945 jsql.config
04/09/01 10.30 1.115 JdsExplorer.config
04/09/01 10.30 1.176 JdsServer.config
04/09/01 10.30 1.200 JBuilder.config
04/09/01 10.30 1.852 jdk.config
04/09/01 10.30 16.384 JBuilder.exe
04/09/01 10.30 16.384 JdsServer.exe
04/09/01 10.30 16.384 JdsExplorer.exe
04/09/01 10.30 16.384 jsql.exe
04/09/01 10.30 20.480 JdsExplorerW.exe
04/09/01 10.30 20.480 JdsServerW.exe
04/09/01 10.30 24.064 JBuilderW.exe
12 File 136.848 byte
12.037.988.352 byte disponibili

You can see that they have the same file size, and they are identical.
Here you find also a list of ".config" files.

The .exe ending with "w" are native wrapper for javaw.exe, and the .exe not ending with "w" are wrappers for java.exe.

Using those files you can configure your jvm wrapper for your application, copying for example jbuilder.* to myapp.* and jbuilderw.exe to myappw.exe. The sintax of .config file is about easy to understand and to be adapted for your use.

Re: How do I make and EXE?

Posted By:   Badis_BenHamida  
Posted On:   Wednesday, October 24, 2001 09:48 PM

you can't with JBuilder. It is possible with Visual Cafe
About | Sitemap | Contact