Page 1 of 1

Exe Java Wrapper

PostPosted: 18 Jun 2010, 17:37
by mtgrares
You can create a exe file that finds the Java Virtual Machine. It solves a few problems for people. I've used both JSmooth and Launch4j but they both take some time "findling" with them and in the last 30 minutes I couldn't get either of them working correctly. The class that you need to run is Gui_NewGame which is in the forge package, forge.Gui_NewGame

Both on Sourceforge.net:

JSmooth Website

Launch4j Website

Re: Exe Java Wrapper

PostPosted: 18 Jun 2010, 17:47
by mtgrares
I just had success with jStart32

Put forge.exe in the same directory as run-forge.jar. Forge.exe will only run if you have Java 1.6 or higher.

Forge.exe (90 kb) - Mediafire.com isn't perfect but at least it works.

Re: Exe Java Wrapper

PostPosted: 18 Jun 2010, 19:02
by KingMob
Hooray!!


Thanks~!

Re: Exe Java Wrapper

PostPosted: 18 Jun 2010, 19:49
by Snacko
I still think launch4j is the best.
Here's 40kB exe with an icon which checks for java 1.6.0 either jre or jdk plus it creates a process named forge.exe so you can easily find it in task manager, the package includes launch4j project and icon (taken from the already included icons).
http://www.mediafire.com/file/yjzxlyzzmtz/ForgeExe.zip

Re: Exe Java Wrapper

PostPosted: 20 Jun 2010, 20:34
by nantuko84
I tried launch4j today and I liked how they did it ;)
thanks for urls!

Re: Exe Java Wrapper

PostPosted: 22 Jun 2010, 16:19
by mtgrares
Here are two good exe files that run Forge, put them into the same directory as the file "run-forge.jar"

Forge.exe - has a dinky splash screen but I plan to use KingMob's picture

Forge.exe - shows the console or command line, so you can see error message and anything that is printed

I ended up using both jSmooth (because it has console support) and launch4j (because it supports a splash screen).

p.s.
To copy stuff from the console, right click on the title bar (yes I know it is wierd) and select "Edit" then "Mark". Now hold down the left mouse button to highlight the text that you want. Right click on the title bar again and select "Edit" then "Copy". Finally, just paste the text where you want it.

Re: Exe Java Wrapper

PostPosted: 22 Jun 2010, 16:54
by Snacko
To have console in launch4j you set up in GUI Header>Console

Re: Exe Java Wrapper

PostPosted: 22 Jun 2010, 17:52
by mtgrares
I thought I looked everywhere but I guess I didn't, thanks.