Jake2 Screenshot 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:
yesyesnononoyesyes
Suggest an update

Comments

Currently supported operating systems are Linux and Windows2000/XP
Java - write once, run anywhere
Re: Java posted by anonymous on Nov 14 2004 2:38 PM
The openGL and the OpenAL thing is what is limiting portability, mostly because surely they have been written using native code. So you have to write these libraries for every os you want it to run and then you have a true write one, run it everywhere.
Re: Java posted by anonymous on Nov 14 2004 10:09 PM
http://www.openal.org/platforms.html
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?
Re: Java posted by blacksheep on Nov 15 2004 2:26 AM
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".
Re: Java posted by anonymous on Nov 15 2004 1:09 PM
In fact Jake2 runs on Linux, Win32 and OS X. Try this: http://www.bytonic.de/html/jake2_webstart.html
Re: Java posted by komakino on Mar 25 2006 11:49 AM
There are Java bindings for both openGL and openAL, so any platform that runs Java will run Jake2
Re: Java posted by anonymous on Mar 25 2006 3:29 PM
Java: write once, test anywhere.
Re: Java posted by anonymous on Mar 26 2006 5:31 AM
Java, write once, brake everywhere.

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...

Re: Java posted by anonymous on Mar 26 2006 5:36 PM
Portability has nothing to do with licensing. It CAN run virtually anywhere, if you remove artificial limitations such as IP (no, not Internet Protocol)
I've submitted the game a while ago, because I find it curious that they have been able to port Quake to Java and that benchmarks are published right in the webpage.
I thought it wasn't approved before because the game isn't really towards the players but rather more like a scientific experiment.
Very nice game. Works without any problems, just click in java webstart link and start playing, no trouble when installing. And works fast in my relatively old computer, proves that code in java can be fast.
I love the Java quick start, and it is a cool game, made even cooler by the fact you can play it on linux, windows and Mac.
How can this interpreted code even be compairable to that of c, is the opengl implementation using native libraries or what ?
Re: Jake2 posted by anonymous on Mar 25 2006 3:27 PM
Yes, jogl is a wrapper around the native opengl api.
Re: Jake2 posted by anonymous on Mar 25 2006 7:11 PM

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.

Re: Jake2 posted by anonymous on Mar 26 2006 2:41 AM
"turn the java bytecode into native machine code at runtime"

this is what I call interpreted

Re: Jake2 posted by anonymous on Mar 26 2006 2:44 AM
i thought that the java runtime environment was a "bytecode interpreter" please correct me if i'm wrong :)=
Re: Jake2 posted by anonymous on Mar 26 2006 4:21 AM
I don't write games in java... but..
//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....

Re: Jake2 posted by anonymous on Mar 26 2006 5:29 AM
Um sorry but java will always be slower and more bloated than compiled code.

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.

Re: Jake2 posted by anonymous on Mar 26 2006 7:13 AM
I never said that java uses little memory

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.

Re: Jake2 posted by anonymous on Mar 26 2006 10:46 AM
I do not agree, java bytecode is indeed interpreted to machine instructions and even if it is possible to design an architecture to use java bytecode natively this isn't the case with your average desktop platform.
Re: Jake2 posted by anonymous on Mar 29 2006 11:42 AM
Stop whining about Java or C already. It's mainly about coding not about the language.
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...

Re: Jake2 posted by anonymous on Mar 26 2006 7:31 AM
Now try the C version again with -02
Re: Jake2 posted by jaeger487 on Jun 13 2009 10:32 AM
I think it goes without saying, having to dynamically write machine code is slower than running prebuilt machine code. Even at it's best, the only thing a JVM can hope to achieve is the same execution speed as the compiler that built the JVM to begin with.
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.
Java turns into native code yes, but the point is that you can use pointers and know exactly how your code is going to be used in native c unlike JIT compilers that manage the process and you don't see what's going on as it turns into native code. So ultimately because of the management it wont be as accurate at runtime. Maybe as fast. So there will be more hiccups then usual 9especially for this type of action game maybe not for adventure) but I'm going to test it and see as I do think you can make some good games with Java as it's already proven itself in some sim markets. Aslo Java is pretty well open source now I think so that's good to. I think this will at least help with delivering some more polished games quicker but wont take over C.
Re: I'll check it out posted by komakino on Mar 29 2006 11:45 PM
I'm hoping that if Java really can prove itself (and TribalTrouble is a good example that it can) it could become more prevalent in game creation, particularly as canny developers will realise that they can easily create games for the three major platforms with little or no extra work.
Please update the page. Jake2 supports network games, which means multiplayer games, both as client and also as dedicated server.

There is a dedicated jake2 server running 24x7 for instant gaming, see www.bytonic.de

Thanks. rst

Excellent game, an example of near-commercial quality game written in Java.
The original engine was highly portable, from the looks of it even more portable than the Java version. Most likely faster too. So... Why?
Re: I don't get it... posted by marduk on Jun 13 2009 5:20 PM
Some people try to prove that java is a c replacement. Personally, I don't think so.
Re: I don't get it... posted by gouessej on Jun 18 2009 3:17 PM
This game is portable, what is wrong? The Sun's JDK, the Apple's JDK, IcedTea and the OpenJDK cover lots of operating systems. The authors attempt to prove that Java is a viable option for gaming, at least as much as C and I agree with them. Java eases game programming a lot; if more people used them for their games, Linux would have even more games for it and refusing Linux because of games (for Windows) would become a weaker excuse than it is now. The OpenJDK is going to become more mature and to cover more Linux/Unix distributions, even some that were not compatible with the Sun's JDK; therefore, there is no reason to complain about the portability.
Re: I don't get it... posted by gouessej on Jun 18 2009 3:21 PM
I think that the authors did not test under a lot of operating systems but, if you look at the libraries it uses, it should work under Mac OS X 10, Microsoft Vista and maybe Solaris even though they are not mentioned.
Re: I don't get it... posted by marduk on Jun 18 2009 6:35 PM
That's cool. But we have a portable c version. Personally, I don't use java applications: as you have said: they *should* work. Somehow. Perhaps. Java needs something like perl testing culture, to make sure everything works on every platform in the right way. Everything is ok when you use the same system as the majority of developers. But when you use a bit more exotic os(sometimes it refers to the gnu/linux) you are on your own. I don't have anything against developing games in java, I don't play them. Not yet. I don't think this port will be popular, but it may teach the developers how to write better code - and I support that:)
Re: I don't get it... posted by damn on Jun 24 2009 3:05 PM
Why so much whining!? Why did they create a Java port? Because they felt like it, coders like a challenge, because it makes Q2 playable from the web without installation, plenty of valid reasons, ok? If you wanted to make a game playable from the browser without installation what would you recommend as a portable option? Shockwave, Flash, Silverlight, one of the natively compiled(Qlive style) browser plugins? Didn't think so. Games like this and Tribal Trouble show just how well adjusted Java is to this kind of game delivery.

Log in or register to rate this game or post a comment.