0

I am learning HTML and I am trying to put my applet in my HTML file. When I open it with firefox, it works perfectly, but when I try to open it with chrome or safari it fails. Chrome says:

load: class Main.class not found.

Here is the tag I am using:

<applet code="Main.class" width="500" height="500"></applet>

I have put the Main.class in the same folder as the HTML file.
I'm running a mac, but i tried it on another computer running windows 7 and it worked with chrome.

Help! Is my mac haunted?

I am running the java version 1.6.0_33 from apple inc

4

1 に答える 1

0

この方法でhtmlコードを変更してみてください

<applet code="Main" width="500" height="500"></applet>

それが役に立ったかどうかを報告する

幸運を

于 2012-08-01T19:46:31.500 に答える