G
greyham
I've developed a number of applets before but now new ones don't seem
to work. I've got a simple example...
import java.applet.*;
import java.awt.*;
public class testing extends Applet {
public void paint(Graphics g) {
int i=0;
g.drawRect(50,50,60,60);
}//paint
}//class
It compiles fine and I have a html page (testing.html) that reads...
<html>
<body>
<applet code="testing.class" WIDTH="200" HEIGHT="200"</applet>
</body>
</html>
When I view the page in IE, I get a grey rectangle and the error at the
bottom says it can't find testing.class. I keep both in the same
directory too. When I run >appletviewer -debug testing.html, I get:
Initializing jdb ...
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.ThrowableVM Started:
The application exited
And that's it. Any thoughts? Thanks
to work. I've got a simple example...
import java.applet.*;
import java.awt.*;
public class testing extends Applet {
public void paint(Graphics g) {
int i=0;
g.drawRect(50,50,60,60);
}//paint
}//class
It compiles fine and I have a html page (testing.html) that reads...
<html>
<body>
<applet code="testing.class" WIDTH="200" HEIGHT="200"</applet>
</body>
</html>
When I view the page in IE, I get a grey rectangle and the error at the
bottom says it can't find testing.class. I keep both in the same
directory too. When I run >appletviewer -debug testing.html, I get:
Initializing jdb ...
run sun.applet.Main testing.html
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.ThrowableVM Started:
The application exited
And that's it. Any thoughts? Thanks