Java is a reflective, object-oriented programming language initially developed by James Gosling and colleagues at Sun Microsystems in 1991, as part of the Green Project. It was initially called Oak, and was intended to replace C++, although its feature set resembles more that of Objective-C. Sun Microsystems is currently owned by the Oracle Corporation, which maintains and regularly updates the Java platform.
Specifications of the Java language, the JVM (Java Virtual Machine) and the Java API are community-maintained through the Sun-managed Java Community Process.
After first being made public in 1994, it achieved prominence following the announcement at 1995's SunWorld that Netscape would be including support for it in their next version of the Navigator browser.
- Object orientation
- Platform independence
- Automatic garbage collection
See The Choice of Java, which contains a more detailed evaluation of the language.
Pros Java has excellent features for roguelike development:
- Object orientation.
- Platform independence.
- Ability to run on a web page as an applet.
- Generally easier to learn and use than other high-level languages like C and C++.
- Serialization to files makes it easier to implement and maintain game save and load.
- For developers of tiled roguelikes, the AWT and Swing libraries provide an excellent alternative to the 3rd party (or native platform) graphics libraries used in C and C++.
Cons However, it still has some disadvantages:
- No native console support. Developers of ASCII roguelikes must decide whether to
- Longer initial program startup time. Java has no issues with speed once running , especially for RL games.
- No executables, dependency on Java Runtime Environment
- Ahead Of Time (AOT) compiling to a specific OS is possible, e.g. using the GNU Compiler for Java (GCJ). A Windows implementation is available with MinGW.
The features of Java have led many roguelikes to adopt this language:
|7DRL||Attack The Geth|
|stable||Caverns of Underkeep|
|Dweller (using Java Micro Edition, J2ME)|
|Earl Spork (using Libjcsi)|
|Excitable Digger (using Libjcsi)|
|Fortress of the Goblin King|
|Fruits of the Forest|
|Hokuto no Rogue|
|Kamyran's Eye (for mobile phones)|
|Mt. Drash: the Roguelike|
|stable||Pixel Dungeon (for Android)|
|Sigmore Mines 2|
|Tower of Druaga RL|
|Valley of Ge-Hinnom|
|Wayfarer (Written in Processing)|
|defunct||a small freeware roguelike applet created by Will Thimbleby|