Cannot connect to MySQL Database from Java Applet
Hi
I've created a java applet that connects to a mysql database. When i run the applet from the JBuilder Applet viewer, it works fine. but once i load the applet into an HTML page, upload it to the server where it has to run, It gives an error the size to big for this page.
-------------------------ERROR I RECIEVE---------------------------------
load: class cms_applet.cms_start.class not found.
java.lang.ClassNotFoundException: cms_applet.cms_start.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\CMS_Applet\cms_applet\cms_start\class.class (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connec t(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInp utStream(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
---------------------------------
This was running the file on my machine, but i get same error when page is loaded on server. My connection passes when i run the page in my jbuilder9 software. But not anywhere else. Why is it doing this and how can i get it to work?
thanx,
MO
|