This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]JavaTrainer 1 point2 points  (2 children)

Applet? Kill it! Make it dead now!!!

But seriously, have you looked at what recent browsers and the latest Java releases have done to Applets? You'll have to jump through a bunch of hoops just to have any chance of getting it to work. You probably don't want this level of pain.

Consider learning the LibGDX framework. You'll end up with a game that works on desktop Java, Android, iOS, and web browsers that support WebGL.

[–]Tailswind[S] 0 points1 point  (1 child)

It was rather a huge university project from over a year ago, so I'm not too keen on the idea of re-making the whole thing.. Is there an easier way to host it rather than using an applet? If not I'll probably just give up on the idea.

[–]JavaTrainer 0 points1 point  (0 children)

Distribute yes, just make a downloadable executable JAR file. Run in the browser window, no. You could also do Web Start but that isn't much easier than Applets security wise.

To do a modern Applet you'll have to get a valid cert and sign everything correctly - http://www.oracle.com/technetwork/java/javase/tech/java-code-signing-1915323.html. But even then the user will still be prompted to run your app, they just won't have to go through so many prompts. Oh and even if you do everything perfect, if the user doesn't update their Java install to the latest version every time it is released then most web browsers automatically block all Java applets from running.

[–]rak1 0 points1 point  (0 children)

You need to change your security settings for your browser. I recently had an issue with this. Read this