+ 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.

5th Mar 2018, 4:05 AM
Michael Sluck
Michael Sluck - avatar
2 ответов
+ 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
5th Mar 2018, 4:18 AM
voidneo
+ 1
Thank you!
5th Mar 2018, 4:20 AM
Michael Sluck
Michael Sluck - avatar