Wrox Programmer Forums
| 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 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
 
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

 
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
 
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
 
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
 
Old December 27th, 2005, 11: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
 
Old September 10th, 2012, 05:59 AM
Authorized User
Points: 209, Level: 4
Points: 209, Level: 4 Points: 209, Level: 4 Points: 209, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2012
Posts: 49
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..




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 05:30 AM
Compile Java classes to EXE vb_programmer Java GUI 7 December 14th, 2004 08:16 AM
how to make .exe and setup file in java? gaurav_chhabra_911 Java GUI 2 November 23rd, 2004 06:22 AM





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