Debugging Java Bridge CLASSPATH issues? [message #85196] |
Thu, 11 July 2013 20:44  |
Matt Francis
Messages: 94 Registered: May 2010
|
Member |
|
|
I am attempting to do some relatively simple stuff with the Java bridge facility in IDL, but seem to be failing at the initial hurdle. I can instantiate objects of basic class (string etc) and play around with them, but I have installed a package (or whatever is is called in Java land) mysql-connector-java. I added the location of the relevant .jar file into the CLASSPATH in my .idljavabrc file.
When I try and instantiate this, Java throws an exception with the message:
% java.lang.ClassNotFoundException: com/mysql/jdbc/Driver
% at java.lang.Class.forName0(Native Method)
% at java.lang.Class.forName(Class.java:164)
So, it can't find it, but I put it in the classpath. Either the classpath isn't being set right or there is an issue with the .jar file (conflicting Java versions or something???). I would like to narrow this down by verifying that IDL has picked up the additions I made to the CLASSPATH, but I can't find any IDL System variable (or something else) that would let me do that. I.e. I would like to just check say:
> print,!CLASSPATH
and verify that I have managed to set this as desired, but of course that isn't a real IDL System variable.
How can I check what CLASSPATH IDL is using?
|
|
|
|
|
|