Write once, debug everywhere.

Currently I'm struggling with a Java application which runs only almost everywhere. I understand why Java is a slow, memory swallowing language. (BTW: I mean, 512 MB to make a java text editor usable? A 3D world with millions of polygons displayed in realtime and written in C++ can fit into there, and it will run faster than that crappy Java IDE.)
Java compensates this with its "write once, run everywhere" paradigm. But it is really horrible if even this doesn't really work. The program our team is working on runs on all our machines. But, of course, not on the presentation PC. Ok - it runs, but it has slight differences: It doesn't show any icons.
Yeah, that's cool. I tried out nearly everything now, it looks like it is really the fault of the JRE. Who said that developing database frontend applications is boring. :)

six comments, already:

About Java being slow, so slow… try this link, this is a port of the Quake 2 engine in Java : www.bytonic.de/html/jake2.html has approx. the same speed as the original Java code. Of course to achieve this, they have to use a Java – OpenGL binding library, but still, it is not so bad. It is in 0.9.4 version now, I tried the previous on my PC, and I had no lag at all while playing (not top notch PC, bought it in end of 2000). Of course, Quake 2 is an old engine now, but still…
Hervé () - 09 06 05 - 01:35

Of, course, one should read : has approx. the same speed as the original C code.
Hervé () - 09 06 05 - 01:39

tbh, I dont think it counts if you write the most performance-intensive part of a 3D application (read: the rendering) in non-Java. With that workaround, its no wonder that it performs well.
TheGolem () - 09 06 05 - 17:08

It’s just the OpenGL binding (directing Java GL orders to the OpenGL API, all the engine is coded in Java.
Hervé () - 09 06 05 - 22:43

java’s OO cleanliness and garbage collection does come at a rather high price, but for the OO purist, its the only way to go…
as for the write once run anywhere bit, I would make sure the jre on the PC it doesnt work on is installed properly, it certainly wont work right if the interpreter is broken….
buhatkj - 10 06 05 - 01:54

If you’re an OO purist, use C#... Java and its “elemental datatypes” is about as pure as a muddy river…

@herve: The engine is the “quick” part of the game… the time consuming stuff is the rendering, which is done in non-Java. That was exactly my point…
TheGolem () - 10 06 05 - 14:31


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.