Hi, 

I'm working in a project that use iSeries and Pase.

We must work with C and Java mixed technology.

We use the Java Invocation Api ( from C ) to call Java Methods

and the JNI interface from Java to call native Api.

We discover some problems:

1) To call correctly a c method from Java, using JNI with the section

   ...
static{

   System.loadLibrary("name of library");

   }   
...

When start a Pase QShell session, I must export the QIBM_PASE_JAVA_STARTUP 
variable
to successfull load the library.

2) To use the Java Invocation API, using the JNI_CreateJVM (...), I cannot 
define
the QIBM_PASE_JAVA_STARTUP variable otherwise the JVM don't correctly start.


  The Question:

>From Java Invocation Api I must call a java method that use native library, 
>but I cannot do this,
because if I define the QIBM_PASE_JAVA_STARTUP to make the JNI working,
the Java Invocation Api don't work.

Exist a safe method to make working both JNI and Java Invocation API?.

Thank you in advance for any possible solution to the problem.

Giuseppe Callipo.








As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.