I am a hobby programmer working on developing a Java game (JApplet) that runs on a web page. I've already finished coding and it works great when using Netbeans, but I have a lot of problems deploying it. I signed it and it works in sandbox mode. However, testing it on several computers (Mac and PC) and different browsers, none of them seem to want to launch applets easily.
Looking into it, it seems that they pose a high security risk (why browsers do not try to launch them), and the search for “Applets Dead / Unused” cause a lot of consistent results. I searched for alternatives and saw the following list.
- Java Web Start (apparently also dead)
- JWrapper (not sure I'm addicted to third-party supported code)
- Start again in Javascript / HTML5
I do not know javascript or html5, so this would mean starting from scratch so as not to get involved in this option.
Java Web Start, it may not be as dead as people say, but I do not want to rely on the fact that after a few years it may not be supported by browsers.
JWrapper ... seems to launch the application only outside of the browser, and I would rather run it. Also not sure how long it will take to migrate from JApplet to JWrapper.
I would really appreciate some recommendations on this subject, as I play a major role in three rather dubious options.
Thank you very much in advance
Update
Thanks for all your answers. This confirms my fears that I am working on outdated technologies!
I took two things.
- GWT for converting Java to JavaScript: I quickly looked at this, and although there seems to be a slight learning curve, this time a quick fix can be made.
- The answer provided assumes that I should go to JavaScript and HTML5. My main problem is that I am not going to spend six months learning a new language. I may be too concerned about the learning curve. I program in C, C ++, Java, C #, so I am very good at basic coding (imho), but I have never done any side actions on the server side. Has anyone thought about how long it takes to find out?
thanks
source share