Re: IDL JavaBridge on Mac OS X [message #38434] |
Mon, 08 March 2004 07:15  |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
> Is anyone else using the JavaBridge from IDL on Mac OS X?
I helped a co-worker set up the IDL-Java Bridge on OS X a couple weeks
ago and it is working for him. It is possible!
> Following the documentation I added this to my .cshrc file
> setenv IDLJAVAB_CONFIG /Applications/idl_6.0/external/objbridge/java
> although I'm not sure it was necessary.
That shouldn't be necessary. Once you place a .idljavabrc file in the
root of your directory, you should be good to go.
> The documentation calls for a file called .idljavabrc, so I copied
> their .idljavabrc.orig into a new file with the proper name. Within
> that file the first configuration is this line.
> JVM Classpath = $CLASSPATH:$JAVABRIDGE_DIR/jbexamples.jar
> It's not clear to me that $JAVABRIDGE_DIR is defined anywhere that I
> know about. So I added the full path to my .jar files.
Full paths are always best when trying to debug a problem. You can find
out if $JAVABRIDGE_DIR is defined by issuing the following command:
echo $JAVABRIDGE_DIR
If it is defined, you'll see the value. If not, you'll see a blank line.
> Next, it calls for a path to the libjvm.so file. I couldn't locate
> that file anywhere on my Mac.
That's because Macs don't have a libjvm.so file. Search for a file in
your Java directories that starts with "libjvm". I forget what the
filename extension is for OS X, but it's not ".so" -- the extension for
libjvm is whatever OS X uses to denote a system library.
> If anyone out there has tackled these issues, I'd love to hear what
> you did to these files and how you got it working.
If you still have problems, just ask. I should be able to get the
config files my co-worker is using.
-Mike
|
|
|