comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: problems on idl java import bridge
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: problems on idl java import bridge [message #64474] Mon, 05 January 2009 06:57
Chris W is currently offline  Chris W
Messages: 12
Registered: May 2007
Junior Member
Hi,

I have done the same thing with postgresql. You might try adding the
mysql jar file to your classpath rather than compressing it in the
data.jar file.

Chris

On Jan 4, 7:56 am, wjzhou <Magic.Z...@gmail.com> wrote:
> 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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Sun symbol (again!)
Next Topic: Re: Image Map Overlays and Grids, Oh My!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 02:25:42 PDT 2025

Total time taken to generate the page: 0.16265 seconds