Indiegamer Developer Discussion Boards  

Go Back   Indiegamer Developer Discussion Boards > Indie Game Development > Game Development & Technical

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2007, 05:12 PM
Bad Sector Bad Sector is offline
Senior Member
Join Date: May 2005
Location: Athens, Greece
Posts: 1,952
Send a message via ICQ to Bad Sector Send a message via MSN to Bad Sector
Default Java "Consumer JRE"

The story.

In a few words, seems that Sun took notice that today Java isn't very consumer friendly, especially in the applet and downloadable programs front and they're trying to fix these issues. Particularly interesting are the Java Kernel feature which will contain only a very basic JRE and download the rest on demand (they managed to run Limewire with a 4mb JRE) and the Quickstarter feature which will, well, start the runtime faster by caching some stuff at startup time (they say they won't load a JRE at startup time though, so i'm not sure how else they will fix this - but then, if there is only a smally 4mb JRE, load time will be vastly reduced). For windows developers the use of Direct3D for simple 2D applications seems a nice addition too.

Personally i also liked the new UI for Swing. It was just about time to get rid of that ugly metal theme. Still, the new "Nimbus" look doesn't look 100% right, but it's far far better than the monstrosity that metal is :-P.
__________________
IVEDONE:nicoTuvla, nikwi, squareShooter
New stuff: Rombo, a 3D first person Flash game!
Dungeon Knight - pose with the sword, defeat the monsters and save the princess!
Reply With Quote
  #2  
Old 05-25-2007, 05:28 AM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

A while to wait for it though, even so.

Cas
Reply With Quote
  #3  
Old 05-25-2007, 08:46 AM
electronicStar electronicStar is offline
Senior Member
Join Date: Feb 2005
Posts: 1,595
Default

The dragon is awaken after a thousand years, but isn't it too late?
Reply With Quote
  #4  
Old 05-25-2007, 08:57 AM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

Too late for what?

Cas
Reply With Quote
  #5  
Old 05-25-2007, 09:17 AM
electronicStar electronicStar is offline
Senior Member
Join Date: Feb 2005
Posts: 1,595
Default

To become popular
Reply With Quote
  #6  
Old 05-25-2007, 09:40 AM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

Meh, it's already popular in ordinary dev circles. It'll trickle down to game dev eventually.

Cas
Reply With Quote
  #7  
Old 05-25-2007, 03:05 PM
oNyx oNyx is offline
Senior Member
Join Date: Jul 2004
Posts: 1,106
Default

It's actually very popular:
http://www.tiobe.com/tpci.htm
http://www.cs.berkeley.edu/~flab/languages.html

For game development it isn't that popular yet, but the consumer JRE could help there a bit.
Reply With Quote
  #8  
Old 05-25-2007, 04:22 PM
wazoo wazoo is offline
Senior Member
Join Date: Jul 2004
Location: Calgary, AB
Posts: 470
Default

I'm enjoying LWJGL at the moment, but I wish Sun shake things up:

1. Drop Java3D. Does anybody use it outside of universities?

2. Create a "Games Dev Portal" site similar to the DirectX area on the MSDN. Have friendly links with information about LWJGL and JOGL all of which have been used in commercial games!!! They sort of have something now...but. meh.

I realize they probably don't want to get into the business of picking and choosing 3rd party java libraries (such as LWJGL and JOGL) but c'mon...if their current approach isn't working, why not shake things up a bit?

3. If you already like Java, then you're more than likely going to stick with it. However that tends to promote a bit of "tunnel vision". Maybe Sun should create a Game Liason type of position just to gather data from game/entertainment companies on *why* they're not using Java. Is it just because of the bundled runtime issue? Or is there more there...?

I don't know...I definitely don't have all the answers on the best of days, but given how portable java is across the PC / Mac / Linux platform, and contrast that with the adoption by game companies, I'm just hoping for more than what they currently have...

If they stand still for too long, XNA will cream them IMHO.

/shrug
__________________
Erik Yuzwa | http://www.wazooinc.com
Reply With Quote
  #9  
Old 05-25-2007, 06:09 PM
Bad Sector Bad Sector is offline
Senior Member
Join Date: May 2005
Location: Athens, Greece
Posts: 1,952
Send a message via ICQ to Bad Sector Send a message via MSN to Bad Sector
Default

Comparing XNA and Java is like comparing -guess!- apples and oranges (how original... but yeah it's just like that).

XNA is a framework built on .NET.
Java is a language, a runtime environment and a library of classes.

It's more appropriate to compare XNA and LWJGL, but even in this case, i think that LWJGL is a more low-level library than XNA.

If XNA-for-mobile-devices existed, it *could* be comparable with J2ME plus some of JSPs that had to do with model skinning stuff, etc.


Also, why drop Java3D? Some people use it you know...
__________________
IVEDONE:nicoTuvla, nikwi, squareShooter
New stuff: Rombo, a 3D first person Flash game!
Dungeon Knight - pose with the sword, defeat the monsters and save the princess!
Reply With Quote
  #10  
Old 05-25-2007, 09:22 PM
wazoo wazoo is offline
Senior Member
Join Date: Jul 2004
Location: Calgary, AB
Posts: 470
Default

Agreed Bad Sector.

They are apples and oranges, but they both have a feel of "next generation" in terms of game development (at least that's how I look at them).

But I'm not trying to start a flame war about languages (my apologies if that's how it's interpreted).

I just meant that if Sun is serious about gaming, then maybe they should start throwing some resources into a proper community around it, other than some forums....

I mean how about some interviews with today's entertainment companies that successfully use Java? What were their challenges? What were their successes? While there are a lot of great gaming libraries other than LWJGL and JOGL, at least start highlighting what those are and what they give you...?

I don't know...like I say, I don't have the answers

And about Java3D, I just meant that even Sun doesn't really make it out to be "commercial grade"...more like an experiment in 3D scene management. /shrug.

Maybe put together a game console prototype built on a stripped down java runtime with some OpenGL-capable hardware?

ah well...
__________________
Erik Yuzwa | http://www.wazooinc.com
Reply With Quote
  #11  
Old 05-26-2007, 09:16 AM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

Quote:
Originally Posted by wazoo View Post
Maybe put together a game console prototype built on a stripped down java runtime with some OpenGL-capable hardware?
It's called a Mac Mini

Apparently the Gaming Technology Group have just been recognised finally as being on to something big and the top brass have started to put money into the client side of development (as opposed to their previous focus which was serverside) but you only have to take one look at what MS are doing with XNA, XBLA, .net and Vista, etc. to realise just how far behind they are in this. Largely I think because no-one truly competent is in charge of it all at board level. Sun need to hire some new blood in to help out.

Cas
Reply With Quote
  #12  
Old 05-26-2007, 10:03 AM
wazoo wazoo is offline
Senior Member
Join Date: Jul 2004
Location: Calgary, AB
Posts: 470
Default

Quote:
Originally Posted by princec View Post
but you only have to take one look at what MS are doing with XNA, XBLA, .net and Vista, etc. to realise just how far behind they are in this. Largely I think because no-one truly competent is in charge of it all at board level. Sun need to hire some new blood in to help out.

Cas
QFT

Well hopefully they'll start to get their act together. They could always pull a google by luring away some unappreciated higher level DirectX/XNA manager or two...
__________________
Erik Yuzwa | http://www.wazooinc.com
Reply With Quote
  #13  
Old 05-26-2007, 03:24 PM
electronicStar electronicStar is offline
Senior Member
Join Date: Feb 2005
Posts: 1,595
Default

Quote:
Originally Posted by princec View Post
It's called a Mac Mini

Apparently the Gaming Technology Group have just been recognised finally as being on to something big and the top brass have started to put money into the client side of development (as opposed to their previous focus which was serverside) but you only have to take one look at what MS are doing with XNA, XBLA, .net and Vista, etc. to realise just how far behind they are in this. Largely I think because no-one truly competent is in charge of it all at board level. Sun need to hire some new blood in to help out.

Cas
Lol you are probably the more qualified person to help them right now, you and Evanstaul who did Rage of magic. You know the market and what devs need.
Oh and I remember the conversations on JGO when everybody was thinking the Playstation 3 would run on Java
Reply With Quote
  #14  
Old 05-26-2007, 06:02 PM
tau tau is offline
Member
Join Date: Mar 2007
Posts: 86
Default

Agree, there is good future for Java as the gaming platform. It works fine on cell phones, it can work fine on PCs or game consoles.

Guys, I always wanted to start 3D game development on Java. Can you round up please the existing 3D libs and their cons and pros from your experience?
__________________
Tau Powered - ramblings about software and game development
My Twitter - follow me on Twitter, it could be interesting sometimes
Reply With Quote
  #15  
Old 05-27-2007, 12:06 AM
Bad Sector Bad Sector is offline
Senior Member
Join Date: May 2005
Location: Athens, Greece
Posts: 1,952
Send a message via ICQ to Bad Sector Send a message via MSN to Bad Sector
Default

Just noticed this blog entry on Java Kernel where the author of JK says that
Quote:
The Kernel JRE's installer includes jvm.dll, the other native files and hundreds of classes needed to boot the JVM, the Java Plug-In, Java Web Start, java.exe, javaw.exe, javaws.exe, the installation code, and various support libraries needed to support the installer (such as unpack200).

And it's only 1.9MB.

If you build a custom bundle containing the classes required to run a typical Swing program, it comes out to about 1.5MB, for a total download of around 3.4MB for the JRE + custom bundle. Bigger programs might use as much as 4MB-5MB of the total JRE size, but it would be rare to exceed that.
__________________
IVEDONE:nicoTuvla, nikwi, squareShooter
New stuff: Rombo, a 3D first person Flash game!
Dungeon Knight - pose with the sword, defeat the monsters and save the princess!
Reply With Quote
  #16  
Old 05-27-2007, 04:25 AM
oNyx oNyx is offline
Senior Member
Join Date: Jul 2004
Posts: 1,106
Default

With a custom stripped JRE the default opengl gears demo (lwjgl) is about 1.5mb as installer (lzma+p200 compression). A very minimalistic game with a few sound effects, one or two tracker modules, gamepad support and a handfull of tiny textures fits nicely into about 2.5mb. If you try hard enough.

With 5mb as target you have quite a lot of room. Any extra code gets compressed to basically nothing:
http://kaioa.com/svg/compression_ratio.svgz (looks better with Opera)

With this setup you get something like "jar.pack.lzma" or "jar.pack.lzma (no debug)". Even if you throw 10mb* of classes into the installer, it will merely grow by about 1mb. Or more... depending on how much more of the standard lib you're pulling in.

[* For those who aren't familiar with Java... thats a totally insane amount of classes. It's enough for writing Tribal Trouble - twice.]

So, these figures aren't really that surprising. The consumer JRE is more then welcome, however, since stripping a JRE is a major PITA. Well, the effort is sort of acceptable if you use some kind of bare bone and add RT stuff on a by package level. Or if you settle with a specific subset of packages like util, io, net, nio and xml.
Reply With Quote
  #17  
Old 05-27-2007, 11:41 AM
elias elias is offline
Member
Join Date: Jul 2004
Posts: 39
Default

Quote:
Originally Posted by oNyx View Post
The consumer JRE is more then welcome, however, since stripping a JRE is a major PITA.
Not to mention a breach of the standard JRE license. You could probably do a manual stripped JRE off the now open sourced openjdk, but that's not the stable java 6 (and openjdk still contains a few closed source components).

- elias
__________________
Play Tribal Trouble
Reply With Quote
  #18  
Old 05-28-2007, 04:52 AM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

Shhh, they're turning a blind eye to it for now Remember Molebox keeps prying eyes out of dirty secrets...

Cas
Reply With Quote
  #19  
Old 05-29-2007, 08:10 PM
wazoo wazoo is offline
Senior Member
Join Date: Jul 2004
Location: Calgary, AB
Posts: 470
Default

Quote:
Originally Posted by princec View Post
Shhh, they're turning a blind eye to it for now Remember Molebox keeps prying eyes out of dirty secrets...

Cas
Is it just me or is the very idea of Sun going after the guys trying like hell to get Java recognized/deployed as mainstream "enough" for casual games, akin to the record companies suing the very customers that buy their products?
__________________
Erik Yuzwa | http://www.wazooinc.com
Reply With Quote
  #20  
Old 05-29-2007, 08:53 PM
oNyx oNyx is offline
Senior Member
Join Date: Jul 2004
Posts: 1,106
Default

Well, they certainly won't sue anyone for that. Fortunately Sun isn't retarded. For one they aren't losing anything. If they would win it wouldn't even yield enough money to cover the coffee costs of one month. And PR wise it would be a pile of poop. Totally not worth it.

Heck. They even demonstrate how little they care by promoting such oh-so-evil software.
Reply With Quote
  #21  
Old 05-30-2007, 04:44 AM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

Exactly. Sun have made quite a song and dance about my little games and never once has anyone moaned about my deployment "techniques". And now finally they're actually addressing the issue I have by producing a mini-VM. Sweet.

Cas
Reply With Quote
  #22  
Old 05-30-2007, 06:29 AM
TJM TJM is offline
Member
Join Date: Oct 2004
Posts: 34
Default

Quote:
Originally Posted by wazoo View Post
I mean how about some interviews with today's entertainment companies that successfully use Java?
Do any companies who develop commercial games use Java? If so, who?

Also, since Java is cross-platform, powerful, and easy to use, why isn't it popular?
Reply With Quote
  #23  
Old 05-30-2007, 06:49 AM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

Several companies do... theres mine, Oddlabs, the Runescape guys, the people who did IL-Sturmovic, the ones that did Vampyre Masquerade (I think).

It's not popular because a) it doesn't run on any consoles which sort of negates its popularity in games dev business right now as two thirds of the money is in the console market and b) a continuing reluctance for prima donna games engineers to accept their own failings and understand that someone else has solved their problems to a large extent

Cas
Reply With Quote
  #24  
Old 05-30-2007, 07:34 AM
cliffski cliffski is offline
Moderator
Join Date: Jul 2004
Posts: 3,651
Smile

Do you need me to explain pointers to you again cas?
Reply With Quote
  #25  
Old 05-30-2007, 09:21 AM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

Smartypants
But you're a prime candidate for using Java, given the GUI-intensive nature of your games, and total lack of ability to port them to the Mac

Cas
Reply With Quote
  #26  
Old 05-30-2007, 10:06 AM
jankoM jankoM is offline
Senior Member
Join Date: Feb 2005
Location: Slovenia
Posts: 996
Default

yeah cliffky... I am making a bussines app in java and with $100 and a very nice skin my gui elements looked way better (in 5 minuts) than gui in your games (now I will hide in a hole and throw away the shovel)

//and I don't think statically better (like better bitmaps) but they animate, shade in real time glow reflect and all that desk2.0 stuff
__________________

REFAKTOR LLC | blog | games for kids | Site Assistant

Last edited by jankoM; 05-30-2007 at 11:03 AM..
Reply With Quote
  #27  
Old 05-30-2007, 11:01 AM
Jesse Aldridge Jesse Aldridge is offline
Senior Member
Join Date: Apr 2005
Location: Austin, Texas, USA
Posts: 221
Default

Indeed.
And Java people don't have to deal with shit like this:
http://forums.indiegamer.com/showthread.php?t=10408
__________________
CrookedGames.com
Reply With Quote
  #28  
Old 05-30-2007, 01:54 PM
wazoo wazoo is offline
Senior Member
Join Date: Jul 2004
Location: Calgary, AB
Posts: 470
Default

Quote:
Originally Posted by Jesse Aldridge View Post
Indeed.
And Java people don't have to deal with shit like this:
http://forums.indiegamer.com/showthread.php?t=10408
yeah just shit like this

http://forums.indiegamer.com/showthr...light=java+bug

Anyways, all kidding aside, whenever I have had the time to work on my game, it's using the LWJGL library which I couldn't be more happy with..
__________________
Erik Yuzwa | http://www.wazooinc.com
Reply With Quote
  #29  
Old 05-30-2007, 02:10 PM
princec princec is offline
Senior Member
Join Date: Jul 2004
Location: Durham, UK
Posts: 4,311
Default

I believe the resolution to that particular issue was in fact driver-related...

Cas
Reply With Quote
  #30  
Old 05-30-2007, 02:52 PM
oNyx oNyx is offline
Senior Member
Join Date: Jul 2004
Posts: 1,106
Default

Now that I read that thread again... it could be the hdd starting to spin. With win2k I get a complete 5 second freeze whenever that happens (you can't even move the mouse pointer etc). Usually that's pretty audible tho.

Well, there are certainly a lot less mistakes to make with a managed language. And those mistakes, you can still do, are easy to track down. Unless it's a flow glitch, but then again... no language can protect you from those.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:26 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.