Java port of the GPL'd Quake 2 game engine from Id software
Jake2 is Java 3D game engine. It is a port of the GPL’d Quake2 game engine from id Software. To use the Jake2 engine you need either the data files from the original game or from the demo version that is available for download from ftp://ftp.idsoftware.com.
Jake2 uses jogl for OpenGL graphics and joal for 3D sound. Currently supported operating systems are Linux and Windows2000/XP.
License: free
Requirements: Java virtual machine, jogl (OpenGL Java bindings), joal (OpenAL Java bindings), Quake 2 game data (demo datas can also be used).
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | no | no | yes | yes |
Submitted by blacksheep on 2004-09-22.

Java - write once, run anywhere
http://www.opengl.org/about/overview.html#5
But surely, there is support for OpenGL on even more platforms in both hardware and software. And while I have to admit that the first post was indeed flamebait, I can't see why it shouldn't run on some of those other platforms. No Java VM, perhaps? Or is it just that the game hasn't been tested in other environments?
Yep, I'd say it "ain't supported" as in it "ain't tested".
Sorry but java is less cross platform than C or heck even Pascal. I can't run bigger java programs properly in FreeBSD and I surely cannot develop them there, not because it's technicly impossible to port the VM (it shouldn't be much fuzz actualy) but because the license doesn't allow...
I thought it wasn't approved before because the game isn't really towards the players but rather more like a scientific experiment.
Java is not interpreted, unless you are talking Java from 1998 and before, or a really crappy JVM. Modern JVMs have a JIT compiler to turn the java bytecode into native machine code at runtime.
That said, there are some things that just can't be done as efficiently in Java as in C/C++ (though the reverse is also sometimes true). As was pointed out by another anonymous poster, Jake2 uses Java bindings for native libraries.
But please do not perpetuate the myth that Java is interpreted.
this is what I call interpreted
//fib.c int fib(int i) { if (i<2) return 1; return fib(i-1) + fib(i-2); }int main() { printf("%i",fib(40)); } //fib.java public class fib { static int fib(int i) { if (i<2) return 1; return fib(i-1) + fib(i-2); } public static void main(String[] a) { System.out.print(fib(40)); } }
$ java -version java version "1.4.2-03" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03) Java HotSpot(TM) Client VM (build Blackdown-1.4.2-03, mixed mode)
$ gcc fib.c;time ./a.out 165580141 real 0m2.548s user 0m2.541s sys 0m0.004s $ javac fib.java ;time java fib 165580141 real 0m1.941s user 0m1.889s sys 0m0.013s
yep! java is faster in this particular exampe, check for yourself and stop the "java is interpreted" crap. There are good java VMs too you know....
Ofcourse you can compare shitty compiled software with superbly written java software and say "hey look how nice this runs" but it's the fact that VM-run binaries cannot simply be faster and use less memory than compiled ones.
Your benchmark is useless. Compare Eclipse/NetBeans or Azureus etc. with compiled ones.. sorry they can't compete. These monsters eat 100+ megs of RAM, that alone is the killer.
I never said that java is faster in general
I don't use Azerus - it's overkill for me. I do use Eclipse (developing mostly C code). Yep, it's starts slower than Anjuta(it's about 12sec per day - soo slow yeah?) . It's code is easy to mantain it's growing rapidly I can write plugins _easily_. And I really think that my linux hardly shows >1% in uptime/load average. Do you ever saw Visual Studio API for plugins... It's traumatic experience.
Java isn't iterpreted, yep it do boudary checks, null checks and so on.. so it is slower but not so more if you would insert all that if-s in your compiled code. And don't forget the ARMs they are designed for java http://www.arm.com/products/esd/jazelle_home.html (You really did't think that java bc on cellular phones works as interpreted language)
Just for the record, Eclipse 2.x with old java worked sooo slugish on my machine that i didn't like it either, but 3.x/newer java ...mmmhhh milk&honey
But i'm glad that Doom3 isn't in java :> Every appliance has to be think through.
Even this little example above shows how bad coding can be.
Using tail calls the code can be _much_ faster (i.e.25%).
int fib(int i, int s) { if (i<2) return 1 + s; return fib(i-1, fib(i-2, s)); } int main() { printf("%i",fib(40, 0)); }Yeah right, your language might be shiner than mine. But i can work magic with mine...In any case, execution speed isn't everything. Java is just such a crappy language, after working with it for ten years I've reached the point where I don't want to install Java, not even as a browser plugin. I just hate it so much. Thank goodness "Matz" and Guido gave the world their babies.
There is a dedicated jake2 server running 24x7 for instant gaming, see www.bytonic.de
Thanks. rst