java - Applet html embedding and I can't seem to locate the .class from my git repo -


i trying embed java applet webpage. unfortunately, can't put .class file straight server so, going read .class file git repository , pointing archive attribute in html code.

this html code:

<html> <body> <applet code="dodgemapplet.class" width="640" height="480" archive="https://github.com/smithg017/repo.git"> </applet> </body> </html> 

i still pretty new html can show me right way should going java applet embedded website? thanks!

well, there hidden property didn't know , after digging found property codebase. put this:

codebase="https://github.com/smithg017/repo/blob/master/" 

right after

code = "dodgemapplet.class" 

code name. default in same directory html file. in case, in desktop folder. if class file elsewhere, reference folder class file in under codebase property.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -