I'm a hobby programmer working on developing a Java game (JApplet) that runs in a webpage. I've already completed the coding and it runs fine when using Netbeans but I'm having a lot of trouble deploying it. I've signed it, and it runs in a sandbox mode. However, testing it on a number of different computers (mac and pc) and different browsers none of them seem to want to run applets easily.
Having looked into it, seems they present a high security risk (why browsers aren't keen on running them) and the search "Are applets dead/non used" turns up a lot of results agreeing. I have looked for alternatives and seen the following list.
- Java Web Start (apparently also dead)
- JWrapper (not sure I'm keen on third party supported code)
- Start again in Javascript/HTML5
I don't know javascript or html5 so that would mean starting from scratch so not keen on that option.
Java Web Start, maybe its not as dead as people say it is but I don't want to rely on something that may end up being unsupported by browsers in a years time.
JWrapper...seems to only run the application outside of a browser and I'd rather run it one. Also not sure about how long it will take to transfer from JApplet to JWrapper.
I'd really appreciate some guidance on this as I'm starring at three rather questionable options.
Many Thanks in advance
Update
Thanks for all your responses so far. It confirms my fears that I'm working on outdated technology!
I picked up on two things.
- GWT to convert Java to JavaScript: I had a quick look at this and though it looks like there is a small learning curve and might be able to do a quick fix this time around.
- The answer provided suggesting I should move to JavaScript and HTML5. My main issue is I'm not keen to spend six months learning a new language. Maybe I'm overly concerned about the learning curve. I program in C,C++,Java,C# so I'm pretty good at basic coding (imho) but I've never done any server side stuff. Anybody have any thought on how long it would take to learn?
Thanks