4 Replies Latest reply on Jul 31, 2010 10:25 AM by 791266

    one doubt


      I am loading an applet through JNLP In a Webpage .In applet i am using Database connectivity.It is working fine
      when i run the applet alone . When i loaded to the Webpage it is throwing that exception

      Exception ::java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

      I added the Mysql connector.jar file in the libs of the project ............

      While loading in the web page the console is exploring the Exception ::java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ?

      Thanks & Regards
        • 1. Re: one doubt
          Did you mention that JAR file in the JNLP file?

          And can you please use a proper subject line next time?
          • 2. Re: one doubt
            Ya i will follow ur suggestions

            This is my JNLP File

            <?xml version="1.0" encoding="UTF-8" standalone="no"?>
            <jnlp codebase="file:/C:/Naveen%20app/FFPRS%20TO%20MATCHMATE%20MODIFICATIONS/FingerImage/dist/" href="launch.jnlp" spec="1.0+">
            <homepage href=""/>
            <description kind="short">FingerImage</description>

            <j2se java-vm-args="-Djava.security.policy=applet.policy" version="1.5+"/>
            <jar eager="true" href="FingerImage.jar" main="true"/>

            <jar href="lib/GrFingerJava.jar"/>
            <jar href="lib/mysql-connector-java-5.0.4-bin.jar"/>
            <applet-desc height="300" main-class="FingerApplet" name="FingerImage" width="300">


            I am using Netbeans IDE ...

            First i created an applet and added the JNLP capabilities through Netbeans .It generates JNLP file and a Html File . I taken the JNLP file and class files and copied to my original project .I am loading the JNLP file in the web page of my main project .The applet is loading fine and it is exploring the

            java.lang.ClassNotFoundException :com.mysql.jdbc.Driver

            This is the Driver Class for the MySql database ..

            Even though i included th mysqlconnector.jar file it is throwing the same error

            Thanks & Regards
            • 3. Re: one doubt
              Have a look at your codebase. You are expecting every user in the world to have read acces to file://c:/Naveen/...
              • 4. Re: one doubt
                This is a cross-post. I'm locking.