Java

From GDWiki

Jump to: navigation, search

Contents

[edit] History & About

Java's most important property is that programs are byte-compiled to a platform-independent format, which makes cross-platform programming very easy. All that is required is a Java Virtual Machine on the machine where the program is run. This causes a small amount of overhead compared to machine language compiled programs, but it is definitely possible to write realtime games in Java. This is made more possible by two factors: the Just In Time compilers and RTSJ (the Real Time Specification for Java).

In spite of the interpreter nature of Java, some Java-to-machine code compilers do exist. These compilers allow you to create an executable program from the Java source (instead of generating bytecodes to be interpreted). This obviously makes the program faster on execution, but not portable when compiled. Thus the popularity of the Just-In-Time (JIT) compilers for Java.

Of course, regardless of your choice of compiler, the source code will still remain portable. In this way you can compile in bytecode or platform-dependent or a mixture. One such compiler is the GNU Compiler for Java, part of the GNU Compiler Collection.

[edit] Development

[edit] Java IDEs

There are many Java IDEs. The most popular two are;

  • Netbeans - open source IDE in Java for Java. Supports Swing better.
  • Eclipse - open source IDE in Java for Java. Supports SWT better.

Other Java IDEs

  • JavaWIDE - the Java Wiki Integrated Development Environment where you can write, edit and run code in a web browswer
  • JCreatorLE
  • BlueJ
  • IntelliJ IDEA (Commercial)

[edit] Java Compilers

[edit] Java JDKs

  • producers of JDKs: from Sun, from IBM, from ...
  • "hard" Real Time support via RTSJ: from Sun, from IBM, from TimeSys
  • J2ME, J2SE, J2EE

[edit] Java Game Engines

[edit] Tutorials and Source Code

For tutorials on Java, click here: View Java Tutorials.

[edit] Community Help

Image:GUITutorial_info.gifStill need help? Ask on the forums and see what we can do. Java Programming Forum

Personal tools
Categories