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
I successfully deployed Java Web Start with no problems at all since the first warning that Chrome would be abandoning Java Applets
I am now working on a replacement using HTML5, so far it can do about 50% of what the Java Applet (or Java Application when run with Web Start) can do
If you're serious about it, you should definitely go with JavaScript/HTML5, because it's the only option available in all major browsers, including mobile versions.
If it's just a hobby, you can still use Applets for now, but note that Chrome, as well as Edge (new Microsoft browser that should replace Internet Explorer) no longer support Java plugin. Firefox should still support it for foreseeable future, but even they don't recommend using plugins like Java. Safari also supports it for now.
Update 1
Mozilla announced that NPAPI Plugins support, including Java, will be removed from Firefox by the end of 2016.
It means that the only mainstream browsers that still support Applets will be Internet Explorer (which is no longer developed) on Windows, Safari on Mac OS X, and nothing on Linux.
If you still prefer to use Java instead of JavaScript/HTML5, the only good option is Java Web Start. It only uses browsers to launch Java applications that don't interact with the browser once they are launched.
Update 2
Today Firefox 52 was released. Mozilla dropped support for NPAPI Plugins including Java (Adobe Flash is the only exception) starting from this release. Apple is preparing to do the same for Safari. Internet Explorer is the only major browser left with Java Applets support.
Oracle is deprecating the Applet API in Java 9.
Firefox version 52 can still run Java applets. In "about:config" page, create a new boolean value "plugin.load_flash_only" with the "false" value. Or you can use directly the Firefox ESR version (entreprises). Hope it helps.
You also could use Native Messages to communicate your Native application with a Chrome extension or Chrome apps, but this fix only will work for Chrome.
Native Messages
In Firefox maybe you can use:
js-ctypes
Also take a look at Vaadin (https://vaadin.com/framework) as a way of running a Java application as HTML5 in the browser. It has a similar all-Java programming model as GWT, but also handles the server-client communication automatically. It's an open source project and has a good sized library of components.