Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 25th, 2004, 12:26 AM
Authorized User
 
Join Date: Sep 2003
Location: Aurangabad, Maharashtra, India.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vb_programmer Send a message via Yahoo to vb_programmer
Default 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 ...

Reply With Quote
  #2 (permalink)  
Old February 5th, 2004, 08:43 PM
Authorized User
 
Join Date: Feb 2004
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Reply With Quote
  #3 (permalink)  
Old February 27th, 2004, 09:56 AM
Registered User
 
Join Date: Feb 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote
  #4 (permalink)  
Old February 27th, 2004, 01:38 PM
Authorized User
 
Join Date: Aug 2003
Location: , , Belgium.
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #5 (permalink)  
Old March 29th, 2004, 01:23 AM
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Obtain JexePack from the following link http://www.duckware.com which makes *.class files to *.exe files.

Raaheel
Reply With Quote
  #6 (permalink)  
Old November 23rd, 2004, 06:27 AM
Authorized User
 
Join Date: Oct 2003
Location: Jönköping, Jönköping, Sweden.
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mrafaqi Send a message via Yahoo to mrafaqi
Default

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.

Reply With Quote
  #7 (permalink)  
Old November 30th, 2004, 05:57 PM
Authorized User
 
Join Date: Nov 2003
Location: Hollywood, Fl, USA.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sonicDace Send a message via MSN to sonicDace Send a message via Yahoo to sonicDace
Default

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
Reply With Quote
  #8 (permalink)  
Old December 14th, 2004, 08:16 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why can't i compile this java file? poorguy Java Basics 1 June 11th, 2007 08:03 AM
How do I compile/output an exe? noob2vb05 Visual Basic 2005 Basics 1 September 26th, 2006 11:56 PM
My Java program won't compile emilaghayev JSP Basics 0 October 21st, 2003 06:57 PM
classes don't compile srisri JSP Basics 1 September 10th, 2003 02:01 AM
classes don't compile serpentierr JSP Basics 3 August 28th, 2003 03:49 AM



All times are GMT -4. The time now is 10:42 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.