Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (563)
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 1920 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 00: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 Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2003-12-12 05: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


Medals: 1


Who, me?


« Reply #2 - Posted 2003-12-12 12: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 03: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 03: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 Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #5 - Posted 2003-12-13 06: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

8: Undefined index: online
File: /home/jgo/public_html/Themes/default/Display.template.php (main sub template - eval?)
Line: 151