Re: Java Connector [message #51062 is a reply to message #50994] |
Fri, 03 November 2006 03:47   |
Aitor Aldoma
Messages: 3 Registered: February 2005
|
Junior Member |
|
|
Wow thanks,
the problem was not in configuration.
It has something to do with 32bit and 64bit versions of Java, IDL and
operating system libraries. The -DIDL_LOAD_DEBUG was really useful.
Need to talk with my sysadmin to fix this.
C u.
pskellicker@ameritech.net wrote:
> There are setup scripts for the bridge on Unix systems. If I remember
> correctly, first source idl_setup then source bridge_setup
>
> Then, make sure you are pointing to the javaidlb.jar where it lives in
> the IDL distribution. For example:
>
> % java -classpath
> '/blah/idl63/resources/bridge/export/java/javaidlb.jar:<others >'
> myClass
>
> You can also specify a command-line option to help debug any library
> loading issues:
> % java -DIDL_LOAD_DEBUG -classpath
> '/blah/idl63/resources/bridge/export/java/javaidlb.jar:<others >'
> MyClass
>
>
> aldoma.aitor@gmail.com wrote:
>
>> Hi group!
>>
>> Trying to use the Java Connector examples I am getting some ugly
>> troubles.
>>
>> IDL version : 6.3
>> OS version : Fedora Linux on Solaris Ultra 40 machine
>>
>> Error
>>
>> Failed to load javaidlb from from default location.
>> Exception in thread "main" java.lang.UnsatisfiedLinkError:
>> nativeInitJPAL
>> at com.idl.javaidl.JIDLPAL.nativeInitJPAL(Native Method)
>> at com.idl.javaidl.JIDLPAL.<clinit>(JIDLPAL.java:186)
>> at com.idl.javaidl.JIDLObject.<init>(JIDLObject.java:71)
>> at
>> com.idl.javaidl.java_IDL_connect.<init>(java_IDL_connect.java:23)
>> at arrays_example.<init>(arrays_example.java:43)
>> at arrays_example.main(arrays_example.java:121)
>>
>> I guess I have configured my machine correctly setting LD_LIBRARY_PATH,
>> PATH, CLASSPATH and IDL_PATH the values proposed in the Bridges
>> documentation.
>>
>> Have you tried Java Connector and had the same problem?
>>
>> Another question,
>>
>> I want to use Java Connector to include IDL processing power in a
>> larger Java Application. This application should finally run on a
>> client machine with JRE and the IDL Virtual Machine.
>> However, reading the documentation some of the methods of the Wrapper
>> Object are not available in the IDL Virtual Machine (setVariable,
>> getVariable and executeString).
>>
>> Is it possible with the standard wrapper object to call the IDL object
>> wrapped methods?? I surely will need to get some data from the IDL
>> object.
>>
>> This is why, I think I should try using Export Bridge Assistant
>> (license needed).
>>
>> Any suggestion or solution will be appreciated.
>>
>> Thanks in advance.
>
>
|
|
|