This discussion is archived
4 Replies Latest reply: Jul 31, 2010 3:25 AM by 791266 RSS

one doubt

843804 Newbie
Currently Being Moderated
Hi

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
Naveen.C
  • 1. Re: one doubt
    EJP Guru
    Currently Being Moderated
    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
    843804 Newbie
    Currently Being Moderated
    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+">
    <information>
    <title>FingerImage</title>
    <vendor>Administrator</vendor>
    <homepage href=""/>
    <description>FingerImage</description>
    <description kind="short">FingerImage</description>


    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <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"/>
    </resources>
    <applet-desc height="300" main-class="FingerApplet" name="FingerImage" width="300">

    </applet-desc>
    </jnlp>




    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
    Naveen.C
  • 3. Re: one doubt
    EJP Guru
    Currently Being Moderated
    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
    791266 Explorer
    Currently Being Moderated
    This is a cross-post. I'm locking.