Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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  
  Recompiling Java  (Read 2370 times)
0 Members and 1 Guest are viewing this topic.
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Posted 2003-06-01 16:56:32 »

I'd like to recompile one of my java games to run on Windows without the need for any kind of JVM installed. it makes use of swing and BufferStrategy. is this possible? and if so, can someone tell me where i can find a good recompiler?

if it is possible what size would you expect the .exe to be once it's compiled?
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #1 - Posted 2003-06-01 18:08:37 »

The final exe will have almost the size of your programm + JRE :>

Well the JRE is only bout 10 mb... and everyone should update it from time to time... even if they need it only for applets.

If my arguments can't stop you search for "Jet".

弾幕 ☆ @mahonnaiseblog
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #2 - Posted 2003-06-01 18:29:44 »

what's princec's Alien flux game compiled with? or is that just some kind of wrapper that detects and uses the existing JRE?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #3 - Posted 2003-06-01 19:31:03 »

Cas has used Jet and it compiles to native. His game is quite small because he hasn't used Swing, Awt or anything else "bloaty".

弾幕 ☆ @mahonnaiseblog
Offline princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2003-06-01 19:47:57 »

You only have to whisper "AWT" at Jet and your exe grows by 4 megs or something. And of course it costs 500 quid for the compiler. Worth it though IMO.

Until we get the JVM we've been asking for Wink

Cas Smiley

Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #5 - Posted 2003-06-01 20:40:15 »

yeah i have dowloaded the JET personal edition. might not work... anyway if it makes the game that big then i dont think i'll bother with it. just release the jar file.

I also tried a while ago a packager from "duckware" called jexepack that would direct the user to the java download page if they didnt have the JVM installed (it just found and used the installed jvm like a jar file...) that was trial ware and he wanded $30 US (60 aus) for it... actually, i think i'll stick with BAT files for now...

hmm 20 minutes remaining... what's this thing doing? recompiling the entire JDK?
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #6 - Posted 2003-06-01 22:01:37 »

Well, i compiled this jar file... i think it must be just the fact that im using the personal version... only came out at 252 kb (the jar is 177 kb)

but as i suspected this cant be run on any computer other than the one i compiled it on... (with or without the jvm installed)

anyway, if you have some time, princec, do you think you could compile this jar for me?

http://members.austarmetro.com.au/~juddman/files2/JMTetris10.jar

Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #7 - Posted 2003-06-02 08:23:02 »

ok, comes out at 6.9 mb. much better to have people download JRE once then only a couple of hundred kb to download newer versions... if i make any.

how would a 'windowed' app be made that doesnt use AWT?
Offline princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #8 - Posted 2003-06-02 09:05:57 »

Use SWT.

Won't have time to do any compilation for a while.

Cas Smiley

Offline CornedBee

Junior Newbie




Eat me!


« Reply #9 - Posted 2003-06-02 09:41:18 »

What about gcc? Can't gcc compile java to native?

All the buzzt
CornedBee :rolleyes:
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #10 - Posted 2003-06-02 10:18:35 »

SWT? hmm i'll google... found.. (standard widget t-something) is that it? looks interesting, might take a more in depth look sometime.

im not planning to make this tiny game into .exe now. mainly i was trying to do it out of interest.

well, i might as well put my jar up on the web site for download now

might also look into java web start. that'd be a useful tool for something simple like this.

anyone got some pointers to tutorial or info on how to start with this? might look around the java web site.
Offline Smoke

Senior Newbie




games rock!


« Reply #11 - Posted 2003-06-02 14:22:00 »

gcj is a branch of gcc and can actually compile java source or byte-code to native and is free.
only problem is that it doesnt support AWT+Swing yet but once it does....

SWT (standard widget toolkit) is a api which is a bit like awt and allows you to do windowed stuff. its a bit closer to the system then awt. its made by the eclipse people (www.eclipse.org).

you can compile the swt-jars with gcj and and use it to make fully native windowed apps. (there should be a tutorial for this somwhere on the gcj site)
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.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (39 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (36 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!