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
Register | FAQ | Members List | Calendar | 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 Display Modes
  #1 (permalink)  
Old May 22nd, 2005, 07:00 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chtiteuf
Default Exe Java

Hello, I'm french and I don't find my problem on Ivor Horton java book
I wants to know if it's possible to create a .exe on windows with a Virtual Machine Java included and I wants a freeware
thanks

Reply With Quote
  #2 (permalink)  
Old May 28th, 2005, 02:50 AM
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

The java virtual machine is an abstract machine which runs java bytecode (class files). Exe files are native to the underlying architecture rather than the virtual machine architecture. You may be able to use the gnu projects gcj compiler to make machine specific executables, but you then have to recompile for each OS that you want your java code to run on. Which kind of defeats the point of java ;)

Cheers

--
Don't Stand on your head - you'll get footprints in your hair
                                           http://charlieharvey.org.uk
                                              http://charlieharvey.com
Reply With Quote
  #3 (permalink)  
Old June 15th, 2005, 06:13 AM
Authorized User
 
Join Date: Feb 2005
Location: Hyderabad, AP, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Sandz
Default

Hi,

Well there are not many ways to do this...atleast not without spendin' a few bucks! There are cool packages like Excelsior JET that you can use. But this will cost you. Then there are others like NativeJ which uses a batch file to generate an EXE of the jar filecontaining your classes. Its completely free. But this wont work for JDK1.4+.However the best is JBuilder X(Enterprise). This IDE has the Native code Converter Wizard that creates native exequtables for Linux,HP-UX,solaris and ofcourse Windows. I would advise you to go for the last one. Its the best but costs the most.

Hope this helps.

Sandz
Reply With Quote
  #4 (permalink)  
Old September 9th, 2005, 08:30 AM
Registered User
 
Join Date: Sep 2005
Location: sukkur, pakistan, Pakistan.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Nazish Send a message via MSN to Nazish
Default

Hi all
Actually I am student of java
want to get some programs made
can anybody help me make program
reply plz
Reply With Quote
  #5 (permalink)  
Old December 27th, 2005, 10:43 AM
Registered User
 
Join Date: Dec 2005
Location: newjercy, us, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
you must at first convert your file to JAR file
then with the convertor jar to exe ...


Kevin
Reply With Quote
  #6 (permalink)  
Old September 10th, 2012, 05:59 AM
Authorized User
Points: 59, Level: 1
Points: 59, Level: 1 Points: 59, Level: 1 Points: 59, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Jar vs .exe programs

Quote:
Originally Posted by ciderpunx View Post
The java virtual machine is an abstract machine which runs java bytecode (class files). Exe files are native to the underlying architecture rather than the virtual machine architecture. You may be able to use the gnu projects gcj compiler to make machine specific executables, but you then have to recompile for each OS that you want your java code to run on. Which kind of defeats the point of java ;)

Cheers
Hello
Nice to learn something on the subjectvia above on browising &will be more useful if you are able give more on the same .please ref my post under unanswered posts for the same suject on 7th sept2012
As
muthukutta1

Last edited by muthukutta1; September 10th, 2012 at 06:04 AM.
Reply With Quote
Reply


Thread Tools
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
creating EXE in java satyabrata_majumder Java GUI 4 August 28th, 2013 06:44 AM
Accessing exe in Java pandian Java Basics 1 October 9th, 2006 08:25 PM
Convert a .java to a .exe Geo121 Java Basics 2 February 1st, 2006 04:30 AM
Compile Java classes to EXE vb_programmer Java GUI 7 December 14th, 2004 07:16 AM
how to make .exe and setup file in java? gaurav_chhabra_911 Java GUI 2 November 23rd, 2004 05:22 AM



All times are GMT -4. The time now is 12:20 AM.


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