How can I get a JME game working in a browser, like the .io games?

[quote=“delt0r, post:20, topic:37213, full:true”]They caused so much security issues, that they should be disabled. I was surprised that they latest as long as the did.

[/quote]

How do they pose “security issues”? They run in a sandbox. So, no security problems at all.

You may want to just google it. A sand box can have bugs too. Hence no such thing as “no security problems”.

Yes but no more security problems than if you just downloaded it. Hence it is not “insecure”.

But I’m more raging at Oracle’s stupidity than anything else. I guess it’s just not possible with JME. :frowning:

This is probably relevant to this thread as well:

https://hub.jmonkeyengine.org/t/porting-to-browser/36343/15?u=jupake

1 Like

When people load up a URL, they hope that it doesn’t have a hidden section of the page that will take over their machine.

When they download a stand-alone game from some strange place, they should probably expect that there is a possibility that it will take over their machine.

This is why those of us who care about Java deployment were always quick to point out that this is only a Java-in-the-browser problem and not a Java problem in general. There is no presumption of a sandbox when running stand-alone therefore the sandbox cannot be broken. The web expectations are totally different.

It’s not that simple tbh. They are far from stupid. Java 8 applets are VERY secure, to the point that it’s becaume a massive pain in the A… to have them to work. IMO Oracle did this just to stop the conversations about java being insecure in a web browser while completely dissuading developers to use applets. And now in java 9 they are gone… And IMO that’s for the best.
That looks like a very clever phase out to me.

EDIT: Also note that applets not working in a browser is not just an oracle thing. Google and Mozzilla dropped the NPAPI, for their browsers. That was the basis to have applets, activex, flash to work in a browser.

Just an idea to interrupt the discussion:
You could also handle the game server-side using PHP or something and interpret Java from there. I’m sure it’s possible.

…but on the server, running Java is no problem. Why would a Java developer want to subject themselves to PHP coding? (Personally, I’d rather pull my own teeth out with broken fingers.)

Because you can get a free host for php. Haven’t found any for java yet.

Handling some traffic is impossible anyway with a free host,you need a powerful server if you want to manage a moderate amount of players.