Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (532)
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  
  is there any tool converting java code to target machine code?  (Read 4356 times)
0 Members and 1 Guest are viewing this topic.
earl
Guest
« Posted 2006-01-17 22:38:47 »

say, convert to a windows exe.
Offline DzzD
« Reply #1 - Posted 2006-01-17 22:42:56 »

yes there is: www.excelsior-usa.com/jet.html   commercial but powerful

Bruno

earl
Guest
« Reply #2 - Posted 2006-01-18 00:20:43 »

seems interesting but i'm doubting that there would be a memory leak issue unless it's smart enough to free unreferenced objects as we manually do with C++.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 743
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2006-01-18 01:47:28 »

Fortunately, it is that smart Wink

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2006-01-30 02:02:22 »

Do you really want native code, or just an exe launcher?

You can get the latter from any installer generator as well as some other free launcher projects.

Precompiling will bloat your code on the desktop and prevent it from being used on other platforms, and I can't see any advantage beyond improved startup time.

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 hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #5 - Posted 2006-01-30 09:16:36 »

Precompiling will bloat your code on the desktop and prevent it from being used on other platforms, and I can't see any advantage beyond improved startup time.
That is true. But, sometimes, someone wants to see your project and he want it to be "for Win platform".  He just wants to double click on shortcut and that will start the game/program. Inthat cases, it is good to have launch4j or similar exe maker.

Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #6 - Posted 2006-01-30 11:26:21 »

Do you really want native code, or just an exe launcher?

You can get the latter from any installer generator as well as some other free launcher projects.

Precompiling will bloat your code on the desktop and prevent it from being used on other platforms, and I can't see any advantage beyond improved startup time.

the main advantage is that your average target doesn't have to download and install a 15M jre to see your 2k "hello wordl" aplication

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline Jeff

JGO Coder




Got any cats?


« Reply #7 - Posted 2006-02-10 02:20:04 »

Precompiling will bloat your code on the desktop and prevent it from being used on other platforms, and I can't see any advantage beyond improved startup time.
That is true. But, sometimes, someone wants to see your project and he want it to be "for Win platform".  He just wants to double click on shortcut and that will start the game/program. Inthat cases, it is good to have launch4j or similar exe maker.

right, which is why I mentioned them and the installer generators which will all make the same kind of launcher for you.

But none of these "convert Java to exe", they mearly provide an exe front end for launching the VM and Java app, which is why I asked what he really wanted and why.

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 #8 - Posted 2006-02-10 02:22:39 »


the main advantage is that your average target doesn't have to download and install a 15M jre to see your 2k "hello wordl" aplication

Yup. If thats all your writing-- hello world. 

For an app of any significant size though code bloat will quickly run your size way up, and then you need to dl all that bloat every time instead of dling a VM once.

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 kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #9 - Posted 2006-02-10 12:53:51 »

you could also have a look at gcc 4.0 (gcj) which compiles to native code, i've heard that with the latest versions theres a pretty good chance that you app will be supported.

have a look at http://www.java-gaming.org/forums/index.php?topic=12400.0
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 342
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #10 - Posted 2006-02-13 13:49:37 »

Jet is extremely good though Smiley But Hello World will still weigh in at many megabytes unless you are familiar with all sorts of tricks. The smallest I got it was half a meg. Of course the example is completely irrelevant in the real world.

"Beyond startup time" -- well, startup time is still significant in JRE deployed applications, and Jet starts in the blink of an eye, and then runs at full pelt thereafter. To get the same performance out of current Sun VMs means waiting a minute or so while it boots and warms up, and using the server VM. So there is a concrete advantage to Jet, especially if first impressions count.

Cas Smiley

Offline Jeff

JGO Coder




Got any cats?


« Reply #11 - Posted 2006-02-14 02:13:33 »

"Beyond startup time" -- well, startup time is still significant in JRE deployed applications, and Jet starts in the blink of an eye, and then runs at full pelt thereafter. To get the same performance out of current Sun VMs means waiting a minute or so while it boots and warms up, and using the server VM. So there is a concrete advantage to Jet, especially if first impressions count.

Well you can force Hotspot to compile up front, or run a warmup loop, so I dont buy that first impressions of execution speed have to be any different.

Maybe I stated the other badly.  Let me try again. IF you need something that will start up almost immediately, then yes pre-compiling is your only option.  The price you pay for that is either slower actual execution or bloat.

In some apps this tradeoff is absolutely worth it.  You wouldnt want to write many of the little command line Unix utilities in Java without compiling them.  Waiting for Java class load time to do an "ls" as an example would be silly.

Mostly it comes down to what % of your run time that startup will be. if its significant then yes you might want to do something about it like pre-compiling.

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 swpalmer

JGO Coder




Where's the Kaboom?


« Reply #12 - Posted 2006-02-14 06:00:37 »

In some apps this tradeoff is absolutely worth it.  You wouldnt want to write many of the little command line Unix utilities in Java without compiling them.  Waiting for Java class load time to do an "ls" as an example would be silly.

Err.. like

javac
jar
javah
javap
keytool
pack200

(I believe all of which are written in Java Smiley)

Actually if you don't pull in Swing or other big frameworks, small java tools don't take too long to launch.

Just as an experiment I coded up a quick 'ls'... you can tell there is a slight hesitation before it starts, but it isn't really irritating, it's under half a second for sure.  (Using Mustang b71)





Offline Gorgorath

Junior Member




Java games rock!


« Reply #13 - Posted 2006-06-02 13:43:30 »

yes there is: www.excelsior-usa.com/jet.html   commercial but powerful

Bruno

Can Exelsior also compile swt/jface in combination with jogl?
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #14 - Posted 2006-06-02 18:34:22 »

Wow, I'm surprised no-one mentioned GCJ - the GNU Java Compiler yet. The latest version is allowing me to compile my full game to natives for windows and linux.

Kev

Offline princec

JGO Kernel


Medals: 342
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #15 - Posted 2006-06-02 20:28:08 »

Probably because you're some sort of pioneer in this field, Kev!

Cas Smiley

Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #16 - Posted 2006-06-02 20:49:56 »

Meh! Pinoneer, Sminoeer - it works and it works now! Smiley

Kev

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.

pw (17 views)
2014-07-24 01:59:36

Riven (17 views)
2014-07-23 21:16:32

Riven (14 views)
2014-07-23 21:07:15

Riven (17 views)
2014-07-23 20:56:16

ctomni231 (45 views)
2014-07-18 06:55:21

Zero Volt (40 views)
2014-07-17 23:47:54

danieldean (32 views)
2014-07-17 23:41:23

MustardPeter (36 views)
2014-07-16 23:30:00

Cero (51 views)
2014-07-16 00:42:17

Riven (50 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!