Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder for my own use and curiosity, how popular is Java in indie game development , in 2d and 3d? Are there any good open/closed source games done in java?

share|improve this question

closed as not constructive by Tetrad May 8 '13 at 17:17

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Made the question clearer. – The Communist Duck Feb 13 '11 at 14:18
I really don't see why Minecraft has anything to do with it. – The Communist Duck Feb 13 '11 at 18:08
Minecraft somewhat "legitimized" Java as a game programming language in some peoples' eyes as it was probably one of the first ones that was highly successful. – Tetrad Feb 13 '11 at 19:40
@Tetrad, only people who were ignorant of Java usage in the games industry. I don't think Minecraft has yet made even a significant fraction of what RuneScape had already made 10 years ago. – Peter Taylor Feb 14 '11 at 10:51
Runescape is abandoning Java by WebGL, in exchange of much more sophisticated graphics for RuneScape:… – JCM May 8 '13 at 19:18
up vote 12 down vote accepted

Java is the language used for Android games. (I believe there may be some other methods like using C++ but its usually Java). If you have an Android phone, you can test the top-downloaded games to see good examples.

I think it's good for indie development - in fact I am doing an indie game for android. There are many tools that Google provides for you - such as debugger, emulator, memory allocation tracker. You can also use the Eclipse IDE with it.

There is also a lot of code online and the StackOverflow site if you get stuck on a bug. Also, Android supports openGL for 2D/3D games (though you can make a 2D game without it - as I am doing).

share|improve this answer
Yes, but outside of Android, its use and scope is somewhat small, as @ZorbaTHut points out. – Nate Feb 14 '11 at 0:18
Maybe so, but I only wish to inform user3689 that mobile game development with Android is an option to indie developers. – f20k Feb 14 '11 at 1:05
Many many games in android are done using C++. :) – Grimshaw May 8 '13 at 18:52

It's not terribly popular, in my experience. There's a few problems. First off, Java isn't the most efficient language around (though better than many think), but that lack of efficiency isn't really compensated for by ease of development. Second, running Java is kind of a pain - it's gotten better recently, but it's still tainted by Java's legendary growing pains. Third, Java hasn't had particularly good graphics support in-browser, and if you're outside the browser, you may as well use something else.

It's not really a matter of Java being bad. It's a matter of Java not being particularly good for any game-related niche, and other languages actually being good. The language that does everything in a mediocre fashion loses to the languages that do something well.

There's a list of famous Java games on this very site, but, well, you can see how popular it is.

share|improve this answer
So, instead of parroting common complains about java, please give links that support your position. In my experience, Java's efficiency is more than sufficient (say, using a good toolkit such as Xith3D or Ardor or somesuch) for almost any indie-caliber game. One overview of these myths is link or even from Stackoverflow link. – ChrisE Feb 14 '11 at 16:36
'Does everything in a mediocre fashion?' Because of this statement I don't really believe you have ever written or deployed any Java code, and are probably not in the best position to issue such sweeping conclusions. – James Feb 14 '11 at 16:56
Did you actually read my post? Java does almost everything adequately, but it does nothing particularly well. I'm not saying it's a bad language, but people tend to focus on the languages that are very good. Java just doesn't stand out in any fashion. It's not superfast, it's not supereasy, it's not supercompatible, it's not supercontrollable, it doesn't have amazing access to third-party libraries. It's a solid B. Solid B's don't win. – ZorbaTHut Feb 14 '11 at 16:57
Java is probably as fast as you need it to be, really easy to code if you've ever tried, and deploys to PC / Linux / Mac with almost no trouble. – James Feb 14 '11 at 17:00
It excels at readability, one of the most if not THE most critical attribute of a programming language. You only write the code but it is read repeatedly, up to hundreds of times for long lasting code. It is really strange how long it takes some people to figure this out. – Bill K Jul 11 '12 at 3:46

Not quite answering the question, but has a non-exhaustive list of commercial Java games here.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.