I have a strange and fustrating problem. I loaded all my .class files into a JAR file and placed it on my local web server. The problem is when I navigated to the page with my JAR I got a big ClassNotFoundExeption. I am 100% certian this class file is in my JAR. I also know the JAR file is in the same directory as my XHTML file
Here is the XHTML source
<html>
<head>
</head>
<body bgcolor="000000">
<center>
<applet
archive = "program.jar"
code = "inigui4.class"
width = "500"
height = "300"
>
<param name="cache_option" value="no">
</applet>
</center>
</body>
</html>
Very strange!
For some reason when I create a hello world applet I get the same problem (could it be with my LightTPD server?
Java source follows
import java.awt.*;
import java.applet.*;
public class inigui4 extends Applet {
public void init() {
}
public void paint(Graphics g) {
g.drawString("Welcome to Java!!", 50, 60 );
}
}
Even stranger.
Now I can't load any applets on the web because I get this error. I will need to contact Oracle in the morning.