Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (577)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Jar -> EXE  (Read 1744 times)
0 Members and 1 Guest are viewing this topic.
Offline K.I.L.E.R

Senior Member




Java games rock!


« Posted 2003-12-12 01:47:30 »

I haven't really bothered with this until now.
I want to be able to make EXE files that run my Java application.

I've seen games made with Java run with EXE files. Is there a method that is troublefree? I have read that people go to a lot of trouble with this.

Thanks

Vorax:
Is there a name for a "redneck" programmer?

Jeff:
Unemployed. Wink
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #1 - Posted 2003-12-12 06:02:36 »

Hi
 There are a couple of options that I know of. Jet is a commercial java to exe compiler, I think it's quite expensive, but has the best results, GCJ is a free one, but has no swing support. As far as I know none of them will work with java3d. I don't know how they handle JNI interfaces (if you are using jogl, joal, or jinput for example). You also throw away one of the major advantages of java. It's cross platform abilities (if exe is the only way you want to distro it). You *could* create a native installer though. Install anywhere was free for non commercial use last time I looked, and seemed easy to use, the process for the end user is nice and simple to install the apps, and you can give them the choice of an install with or without a vm.

HTH

Endolf

EDIT: Typo on GCJ.

Offline cfmdobbie

Senior Member




Who, me?


« Reply #2 - Posted 2003-12-12 13:26:47 »

GCJ
JET

Hellomynameis Charlie Dobbie.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #3 - Posted 2003-12-13 04:30:36 »

I think you guys are assuming he wants to compile his code which is not what I read.

You don't HAVE to compile your code to get a .exe that will launch your app.  There are quite a few "Java launchers" out there that will allow you to create an exe the user can run that will in turn launch the vm and your app.  These are included in such products as InstallAnywhere and InstallSheild but there are also slightly less easy to use free ones (try Sourceforge at a guess.)

There used to be a free level of InstallAnywhere that had this capability but I don't know if it exists anymore...

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2003-12-13 04:32:35 »

Yep it does.  Its called InstallAnywhere NOW!

It at least used to do this as well as build installers for you.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #5 - Posted 2003-12-13 07:23:59 »

Hi
 It does indeed, thats why I mentioned it Smiley, I have some old VM packs lying around if your after java3d in the install. Otherwise the Zero G website has VM packs for various other OSs

Cheers

Endolf

kul_th_las
Guest
« Reply #6 - Posted 2003-12-23 02:15:22 »

Consider writing a simple java class that starts your main java program, and them compile that. An .exe for people to click on - no command-line parameters to fool around with. No worries about which API's it supports, so long as it supports the "java.lang.Runtime.exec()" method...

Of course, this means you'd still have to distribute a JRE with your program (or somehow determine whether the user already had it installed or not).

Hm, I guess this is [EDIT:] exactly what Jeff was talking about. One might wonder if I even read his post. Tongue With GCJ, you should be able to create an executable launcher program for many platforms.

Hey, maybe I'll do one myself, just for kicks.
Offline Jeff

JGO Coder




Got any cats?


« Reply #7 - Posted 2003-12-23 17:34:01 »

JNI contains a call to launcha  VM from C.

I believe there are a number of freeware portable C Java launchers out there which is why I suggested a quick Sourceforge search..  (or a Google.)

Myself, I'd use Install Anywhere Now.  Its easy to use, free, and (assuming they fix the Mac installer/JDK1.4.2 bug) will make launchers for PC/Linux/Mac/Solaris already

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Golthar

Junior Member




;)


« Reply #8 - Posted 2004-01-07 08:15:49 »

Actualy Install Anywhere Now sounds good to me to get the base install going.

My installation is built around a simple base package which includes an installer for getting the most recent packages (and hopefully when I get my own classloader running, to load them at runtime)

This will help me make sure the correct VM is installed.
(and yes, webstart can do that too, but not for every platform right?)

come visit us: http://www.otf1337.com
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (22 views)
2014-04-15 18:08:23

BurntPizza (17 views)
2014-04-15 03:46:01

UprightPath (31 views)
2014-04-14 17:39:50

UprightPath (15 views)
2014-04-14 17:35:47

Porlus (31 views)
2014-04-14 15:48:38

tom_mai78101 (57 views)
2014-04-10 04:04:31

BurntPizza (115 views)
2014-04-08 23:06:04

tom_mai78101 (214 views)
2014-04-05 13:34:39

trollwarrior1 (182 views)
2014-04-04 12:06:45

CJLetsGame (189 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!