[java] java for playstation?
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.
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.
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
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
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.
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
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.
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.
You need to purchase a special SDK from the manufacturer. This often costs in the region of over ten thousand dollars per license.
SketchSoft OFFLINE | SketchNews OFFLINE | NewKlear Studios
SketchSoft OFFLINE | SketchNews OFFLINE | NewKlear Studios
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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement