Hi,

I think it will not work.
This proposed solution assumes you are working in eclipse.
It seems you are not (no reference to eclipse in your call stack).

It's perhaps an issue with your CLASSPATH, or with the content of the 
jar file.

Can you send the exact command you use to launch your application ?
Can you also send the result of the following command: "jar -tvf 
<YOUR_JAR_FILE>.jar" ?

XR



thomas diligent a écrit :
> Hi,
>
> You should check that the packages of your jar are exported 
> (MANIFEST.MF: Export-Package)
> And that it is specified in the classpath of your plugin (MANIFEST.MF: 
> Bundle-ClassPath).
>
>
>
> 2009/6/3 J2EE group (Ashwani) <[email protected] 
> <mailto:[email protected]>>
>
>
>     Hi, I have packaged the sqlite database into jar and want to access it
>     from jar. But when I am trying to load the driver, I am getting
>     following exception
>
>     java.lang.ClassNotFoundException: org.sqlite.JDBC
>            at java.net.URLClassLoader$1.run(Unknown Source)
>            at java.security.AccessController.doPrivileged(Native Method)
>            at java.net.URLClassLoader.findClass(Unknown Source)
>            at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
>            at java.lang.ClassLoader.loadClass(Unknown Source)
>            at java.lang.ClassLoader.loadClass(Unknown Source)
>            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>            at java.lang.Class.forName0(Native Method)
>            at java.lang.Class.forName(Unknown Source)
>            at com.sds.TestJnlp.main(TestJnlp.java:69)
>            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>     Source)
>            at java.lang.reflect.Method.invoke(Unknown Source)
>            at com.sun.javaws.Launcher.executeApplication(Unknown Source)
>            at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
>            at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
>            at com.sun.javaws.Launcher.run(Unknown Source)
>            at java.lang.Thread.run(Unknown Source)
>
>
>
>
> >



--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to