jeg får denne fejl:
load: class applet.jar not found.
java.lang.ClassNotFoundException: applet.jar
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:162)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:566)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1946)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
at sun.applet.AppletPanel.run(AppletPanel.java:298)
at java.lang.Thread.run(Thread.java:552)
Caused by: java.io.FileNotFoundException: /Users/michael/Sites/applet/applet/jar.class (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.
www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
at sun.net.
www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:274)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)
... 9 more
html koden ser sådan ud:
<html>
<body>
<applet code=applet.jar width="800" height="600" >
</applet>
</body>
</html>
og manifest filen ser sådan ud:
Manifest-Version: 1.0
Main-Class: HovedMenu
Class-Path: mysql-connector-java-3.0.15-ga-bin.jar
MySql driveren ligger i samme bibliotek som min jar fil(applet.jar).