problems on idl java import bridge [message #64481] |
Sun, 04 January 2009 05:56 |
Magic.Zhou
Messages: 16 Registered: April 2008
|
Junior Member |
|
|
Hi, guys,
I am a bit comfused about the idl- java bridge, I am now thinking
about using the java class to do some database operations, however,
idl seems have to compress the java file into jar package to invoke
the method, and the problem occurs, I am using the mysql database,
when I use java to do the operations, I have to import an enternal jar
files( mysql-connector-java-3.1.12-bin.jar) , when I compress the java
method into a jar file (for example: the data.jar) and use the jar by
idl, it has the expection of:
java.lang.ClassNotFoundException:
com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at TableManager.<init>(TableManager.java:16)
which mean it can not find the database drive (mysql-connector-
java-3.1.12-bin.jar), I put the mysql-connector-java-3.1.12-bin.jar
into the data.jar and it does not work, can some one have some ideas
to solve my problem?
by the way, my idl platform is version 6.4
thanks a lot.
|
|
|