Thanks for your swift response! That was awesome lol
I want to get Java certified with a complete course on Udemy.com so I was looking to see if it had any benefits to my hobbies as well as a professional life. I know that getting a Java based game to run on consoles has been done before, I’m just not sure how.
I don’t know if there’s a simple explanation or not, either. Like some kind of port or something. I wouldn’t know where to begin at this point, but I’m curious.
There is no official console JVM. So consoles can not execute Java code.
Games written in Java were ported by being rewritten in C++/C#.
Even if there was a JVM for consoles there is another problem.
Consoles use their custom graphics API and shader language which you additionally would have to support.
Actually the avian compilation process we use for iOS should work for other platforms too, including PS4. Problem (as damien said) is implementing the renderer code as its native - but with actual Vulcan support that shouldn’t be much of an issue either, the code to interface OpenGL is pretty slim.
I never did get this. I mean the JVM is a C program that should be able to run more or less everywhere. Only thing you’d have to do is to include it along with the game like you have to do on PC anyway to guarantee it even working.
It’s not like they’re even different OSes anyway, Xbone is a version of Win10 I think, and PS probably runs some sort of modified unix.
Is there something Sony and M$ did to specifically block it because reasons? Are the consoles not fast enough to run it well?
PS4 runs “Orbis OS” as its operating system ,which is based upon a customized FreeBSD 9. It is possible to install the OpenJDK/Oracle JDK in FreeBSD.Avian supports FreeBSD as well.
But I have never seen it done for the PS4. @normen Have you ever managed to run a Java program on any PS console?
The consoles can run it fast enough,no doubt about it.
Read this link about Sun and Microsoft Java issues.
That perhaps is the reason that Microsoft uses C# instead of Java.
Not sure about Sun and Sony.I suppose there is something similar like this going on.I had read in this post that Sun’s middle management cancelled the production of a Sony JVM 3 times,despite Sony’s willingness to cooperate.
I don’t know if this is all true but anyway I like Java and JME so cheers to the community!
What do these do then? I had someone show me these - am I under the wrong
impression that you implement one of these and let it run? Cause so far it
sounds like if you’re going to make games in Java, consoles are out of the
question… unless the console is based around Java itself
LWJGL is what jME uses to access OpenGL. Its basically just a wrapper around the OpenGL API to make it accessible from java. You’d basically do the same thing for the PS4. You COULD put the work into making LWJGL work on PS4 or just write one or two native JNI interface files for jME’s universal GL renderer.
Your point seems valid,then perhaps Sony already owns a proprietary JVM.
“Sony’s PlayStation 3 has been the de facto leader in compliance and support of BD-J[citation needed]. The PlayStation 3 added Blu-ray Profile 1.1 support with a firmware upgrade and was used to showcase BD-Live at CES 2008 in January.”
Also to destroy your guys’ hope, if one were to release a game to a console, he would simply have it port to a console native engine. Without going into the detail, but the cost compare to what even a devkit costs is small and games are easily portable since the biggest challenge is how to do the vector math, you can simply port this then.
In addition to that you don’t know the PS4’s API, maybe they prevent you from file access but instead only have an API for savegames, then you can rewrite 30% of the JVM, even JME’s save method wouldn’t work anymore.
But: Don’t worry, due to the NDA, PS4 Support is nothing for us. For Unity/Unreal you have to prove that you are entitled to a PS4 Devkit so you get the Code. This is a) a no-no for OSS and b) no one could work on it without a devkit.