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

Home » Public Forums » archive » Debugging Java Bridge CLASSPATH issues?
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
Debugging Java Bridge CLASSPATH issues? [message #85196] Thu, 11 July 2013 20:44 Go to next message
Matt Francis is currently offline  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?
Re: Debugging Java Bridge CLASSPATH issues? [message #85206 is a reply to message #85196] Fri, 12 July 2013 10:53 Go to previous messageGo to next message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
Hi

Does your Java code with JDBC driver works well separately without IDL ?
Re: Debugging Java Bridge CLASSPATH issues? [message #85213 is a reply to message #85206] Sun, 14 July 2013 15:57 Go to previous messageGo to next message
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
On Saturday, 13 July 2013 03:53:52 UTC+10, skymaxwell wrote:
> Hi
>
>
>
> Does your Java code with JDBC driver works well separately without IDL ?

Yes, it does, or at least I assume so. I am merely trying to get a fairly standard 3rd party package to work within IDL. It isn't my Java code.
Re: Debugging Java Bridge CLASSPATH issues? [message #85214 is a reply to message #85196] Sun, 14 July 2013 16:16 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
Have you seen this page?

http://www.exelisvis.com/docs/Environment_Variables.html

Together with the GETENV function might get you started... On my laptop GETENV('CLASSPATH') returns the empty string, but then again I have not used Java bridge. You might have to set IDL_CLASSPATH in your bash or csh file so that it points where it is suppose to.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Barplot
Next Topic: Name and favourite colour

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

Current Time: Wed Oct 08 13:46:02 PDT 2025

Total time taken to generate the page: 0.00692 seconds