I have made a java game for a school project and finished it. Recently I decided to turn it into an applet so I could run it on my website, that conversion worked well. I can run the game perfectly fine compiled in eclipse through the eclipse applet viewer but when I try to run it through an html file I get some issues. I can see the graphics and there is music playing in the background, but the keyboard doesn't take any input.
At first I thought I would be able to fix this easily, that it was just some focus issue or something. But after searching the web and trying several solutions recommended to others the problem remained.
The html file is placed in the "bin" folder of the eclipse project, containing all the class files, images and sounds. This is what it looks like:
Code: Select all
<applet code=Henkout.class width=650 height=750>
Your browser is not Java enabled.
I don't know if this is relevant, but I run the latest ubuntu and firefox release.
If anything is unclear or missing, I apologise in advance.
Any help is greatly appreciated, thanks!