Not currently, before it was allowed through Applets, but due to security problems its use was discouraged until it was completely prohibited, you can run applets in old browsers like internet explorer, but I guess it's not what you're looking for.
It requires the Java plugin, however Chrome and Edge browsers do not support plugins and Firefox will stop supporting them soon. In this sense, Oracle also announced that it will abandon the development of the Java plugin as of Java 9.1.
You cannot start execution until the JVM is up and running, and this can take time the first time an applet is run.
If it is not signed as trusted, it has limited access to the user's system - in particular, it does not have direct access to the client's hard drive or clipboard.
Some organizations only allow administrators to install software. As a result, many users (without privileges to install the plugin in their browser) cannot see the applets.
An applet might require a specific version of the JRE.
It may contain vulnerabilities that allow malicious code to be executed.
As you can see, browsers don't allow applets anymore because they don't allow plugins anymore, the same thing happened with flash recently.
You can use java to make a web, for that there is JSP (Java server page) , but you cannot show a java application on a web, they are totally different things
While you can't currently display a desktop application on the web like when Applets were enabled, it is possible to reference it using java-web-start , thus ensuring that the latest version is running. You can find some examples on the official Java tutorials page .
If your intention is more towards a Java application with client-side oriented functionality that you can use from the browser, I would recommend using dukescript . You can find examples in Dukescript 's online web editor . Dukescript could be useful if you want to handle graphics on a canvas because it even has an API for it, so you could even work with 3D graphics.
On the other hand, there are many Java technologies for the development of web applications oriented for use with functionality in a Java-based server , such as jsp , play-framework , jsf , vadin , etc.
Not currently, before it was allowed through Applets, but due to security problems its use was discouraged until it was completely prohibited, you can run applets in old browsers like internet explorer, but I guess it's not what you're looking for.
https://es.wikipedia.org/wiki/Applet_Java#Disadvantages
As you can see, browsers don't allow applets anymore because they don't allow plugins anymore, the same thing happened with flash recently.
You can use java to make a web, for that there is JSP (Java server page) , but you cannot show a java application on a web, they are totally different things
While you can't currently display a desktop application on the web like when Applets were enabled, it is possible to reference it using java-web-start , thus ensuring that the latest version is running. You can find some examples on the official Java tutorials page .
If your intention is more towards a Java application with client-side oriented functionality that you can use from the browser, I would recommend using dukescript . You can find examples in Dukescript 's online web editor . Dukescript could be useful if you want to handle graphics on a canvas because it even has an API for it, so you could even work with 3D graphics.
On the other hand, there are many Java technologies for the development of web applications oriented for use with functionality in a Java-based server , such as jsp , play-framework , jsf , vadin , etc.