 |
| Java GUI Discussions specific to programming Java GUI. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 25th, 2004, 12:26 AM
|
|
Authorized User
|
|
Join Date: Sep 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Compile Java classes to EXE
Hello !
Actually , I'm a VB programmer & I'm working on a Java IDE. I wanted a command line utility just like javac which will generate an Exe file of Java Programs.
Will you please give me either Name of program or download link ?
Waiting for your reply ...
|
|

February 5th, 2004, 08:43 PM
|
|
Authorized User
|
|
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
One way of doing it is to download JBuilder, it's an IDE from Borland.
Some of the versions have the option you ask for, but not all.
|
|

February 27th, 2004, 09:56 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
you can use one command line to generate an exe file only by java2 sdk,
first using javac command line to compile your source file
second using jar command line to compile you class file , specially note to you , you must write
an manifest.tmp file . if you want to know more detail ,pls read just one java book to get
the answer
|
|

February 27th, 2004, 01:38 PM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I do not think you can generate an exe file from Java classes because java is ment to be cross platform and exe files are not.
There might be some tools that give you the option to generate an exe but I have not heard of them.
One option you have to create a file that can be double clicked is to create a .bat file with the java command in it.
Greetz
Tom.
|
|

March 29th, 2004, 01:23 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Obtain JexePack from the following link http://www.duckware.com which makes *.class files to *.exe files.
Raaheel
|
|

November 23rd, 2004, 06:27 AM
|
|
Authorized User
|
|
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello!
another way to do this is that you may create a .exe file in vb which may execute the java.exe file with an argument passing which may be your class. otherwise java enables the executability by double clicking or any other way by making .jar files.
|
|

November 30th, 2004, 05:57 PM
|
|
Authorized User
|
|
Join Date: Nov 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You can also use AXBridge (ActiveX bridge to Java).
Your class would have to implement Serializable interface, and would need setter and getter methods.
This is probably a less attractive method because you'd also need a VC++ 6.0 compiler to generate the dll. The upside is you'd be able to call it from all your Windows apps, including web services such as asp, and be able to interact directly with your class' public API. Then, in this case, you'de create an executable that calls your ActiveX (Bean). I should also mention that the ActiveX dll has to be registered.
The downside of making a command line call is that if you have several arguments, you're going to have to get into a tokenizing scheme to distinguish one from the other, or maybe use XML.
Everything is a tradeoff.... good luck!
thanks
|
|

December 14th, 2004, 08:16 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by sonicDace
You can also use AXBridge (ActiveX bridge to Java).
Your class would have to implement Serializable interface, and would need setter and getter methods.
This is probably a less attractive method because you'd also need a VC++ 6.0 compiler to generate the dll. The upside is you'd be able to call it from all your Windows apps, including web services such as asp, and be able to interact directly with your class' public API. Then, in this case, you'de create an executable that calls your ActiveX (Bean). I should also mention that the ActiveX dll has to be registered.
The downside of making a command line call is that if you have several arguments, you're going to have to get into a tokenizing scheme to distinguish one from the other, or maybe use XML.
Everything is a tradeoff.... good luck!
thanks
|
|
|
 |