Hi. I will try to include as detailed a description of the scenario as possible. I am trying to build an Applet which will connect with a MySQL database. I am trying to run this applet on a webpage that is hosted on Spaceports with the URL in the following format:
I programmed this applet using JBuilder foundation 4. Running the applet from JBuilder works perfectly. I am using JDBC - using the API that is supplied from the MySQL website. I ran into the driver problems before so i included the API in a package. That worked great for JBuilder.
But when i try to view the applet on a web page it says that it cannot find the class.
The applet is: msa.class
It was programmed to be a part of a package called "msa"
I made an archive called msa.jar, which includes msa/msa.class and the API from MySQL. I am calling the code using the following HTML:
<applet
code="msa.msa"
archive="msa.jar"
height=300
width=150>
</applet>
i've also tried:
<applet
code="msa.msa.class"
archive="msa.jar"
height=300
width=150>
</applet>
and many many other variations. I've tested to see whether it is my browser that is the problem by running other applets and even including them beside the msa applet and they all run perfectly. But the msa does not load. When I move my mouse over the applet a message briefly flickers across the status bar of my Browser saying "load: class msa.msa not found"
I am wondering whether it could be because the Spaceports.com web site has a MySQL database which can only be referenced by "localhost" and the "~blah" is causing problems.
i thought that it's just a problem with the way my archive and class reference is being done. but i'm not sure.
Please help.
Ken
I programmed this applet using JBuilder foundation 4. Running the applet from JBuilder works perfectly. I am using JDBC - using the API that is supplied from the MySQL website. I ran into the driver problems before so i included the API in a package. That worked great for JBuilder.
But when i try to view the applet on a web page it says that it cannot find the class.
The applet is: msa.class
It was programmed to be a part of a package called "msa"
I made an archive called msa.jar, which includes msa/msa.class and the API from MySQL. I am calling the code using the following HTML:
<applet
code="msa.msa"
archive="msa.jar"
height=300
width=150>
</applet>
i've also tried:
<applet
code="msa.msa.class"
archive="msa.jar"
height=300
width=150>
</applet>
and many many other variations. I've tested to see whether it is my browser that is the problem by running other applets and even including them beside the msa applet and they all run perfectly. But the msa does not load. When I move my mouse over the applet a message briefly flickers across the status bar of my Browser saying "load: class msa.msa not found"
I am wondering whether it could be because the Spaceports.com web site has a MySQL database which can only be referenced by "localhost" and the "~blah" is causing problems.
i thought that it's just a problem with the way my archive and class reference is being done. but i'm not sure.
Please help.
Ken