+ 2
How do I put my Java code into HTML?
How do I take some of my java code and attach it into an HTML file? I think you have to use an applet but I’m not sure what that is or how to use it. Any help would be much appreciated.
2 Antworten
+ 2
A while ago there was something called java applets, which were java apps you could insert into your html, but browsers stopped giving support to it due to security reasons, so now you can't. unless you manually activate them, if your browser allows you.
Here's an official answer on how to activate it:
https://java.com/en/download/help/enable_browser.xml
Here's how to implement them in your html:
https://docs.oracle.com/javase/8/docs/technotes/guides/jweb/applet/using_tags.html
+ 1
Thank you!