Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

cwurts

[java] java for playstation?

This topic is 5124 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

There seems to be a lot of talk on this forum and elsewhere about Playstation and other consoles and "shipping game titles". I want to know if it is possible to program a game for one of these consoles in java. Also, is there anything extra I would have to do to make it available on Playstation, assuming I have a complete game programmed in java on my own computer.

Share this post


Link to post
Share on other sites
Advertisement
I would imagine there are some JVMs available for PS2, although there will be a significant memory overhead.

Of course any sound, video or input routines are likely going to have to be written in native code for the PS2, to use its hardware and libraries - but I''m sure you understand this.

There are some Java-to-native compilers, I don''t know of any specifically except for gcj (which isn''t very good), but I''m sure there are some reasonably priced commercial ones, which may support MIPS targets.

quote:

Also, is there anything extra I would have to do to make it available on Playstation, assuming I have a complete game programmed in java on my own computer.



Well, obviously, rewrite all the sound, video and input routines. But you''d have to do that anyway. And remove dependency on any Java libraries which are incompatible with the target machine''s JRE (this would of course probably include Java2d/AWT)

Probably rewrite the UI to make it work with the PS2 controller and a TV screen rather than a monitor (i.e. much lower resolution, no keyboard). But you''d have to do that anyway.

Mark

Share this post


Link to post
Share on other sites
At this time there are no JVMs available for any consoles, nor will there be in the forseeable future. Sun has already approached Sony and got a flat out ''No!''. They are working on getting on to other consoles, but it''s a long way off if it happens at all. You can read more about this by searching the javagaming forums.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by markr
I would imagine there are some JVMs available for PS2, although there will be a significant memory overhead.



Just wanted to pick up on this point - there doesn''t necessarily have to be a significant memory overhead at all. The JavaRing, for example, ran a JVM that operated in 6KB of RAM.

If a JVM were written for the PS2, you can bet that it would be written with full understanding of the memory limitations of that console, and would be specced accordingly.

But yes, as of this moment there''s no information about any possible Sun-Sony collaboration. I know of one native-compilation company that have been pondering the market, but everyone seems to be waiting for everyone else to act first.

--cfmdobbie

Share this post


Link to post
Share on other sites
Take people from SUN Excelsior JET, and Sony playstation 2 department. Lock them into a room. Don''t alow them out until some treaty about developing a Java compiler on the Playstation 2 or 3 would be reached. Force them to complete it in high quality and soon enough.
I don''t need JVM on Playstation 2 (If it would be implemented as a chip it would be nice) Simple compiler to Playstation 2 exes is enough.

Alas if you wanna this, you should be fucking bastard and FORCE them. Fast and efficiently.

Share this post


Link to post
Share on other sites
So, how do you program for a console game? Is there a special programming language for this?

Share this post


Link to post
Share on other sites
Once you have that SDK (and the resources to buy it), it shouldn''t be impossible to write a JVM that works on it. There are open-source JVM''s you can look at, but also, the Java bytecode format is fairly straight-forward. I''ve seen a JVM that runs on a Lego Mindstorms robot, taking files straight from JAVAC. It would probably be best to use C++ code for graphics and sound though and only use Java for implementing the gameplay logic of the game.

Share this post


Link to post
Share on other sites
quote:
Original post by cwurts
So, how do you program for a console game? Is there a special programming language for this?


fairly easily. following the white rabbit.


To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Aldacron
At this time there are no JVMs available for any consoles, nor will there be in the forseeable future.


Technically its possible on Xbox but you would probebly have to do some hacks with it. Basically Xbox is a computer dressed up as a console. If its possible to get Linux on Xbox (which has been done) then I dont see why Java would be any harder.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!