|
Hi, yes i readed it ... behind UnsatisfiesLinkException should be a error if JVM doesn't find specified program or Library. But the program is something als simple HelloWorld, and in "static" stage do i controll if is System.loadLibrary() done ok or not ! And the error comes if i try to call the native function. If i change -Djava.library.path to another Library it will crash correctly by the "static" stage of System.loadLibrary() ... Peter "Tõnis" <tonisa@xxxxxx> Gesendet von: java400-l-bounces@xxxxxxxxxxxx 12.03.2004 14:02 Bitte antworten an Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> An "'Java Programming on and around the iSeries / AS400'" <java400-l@xxxxxxxxxxxx> Kopie Thema RE: JNI Problem What's error message behind UnsatisfiedLinkError exception? Have you read this: http://www-919.ibm.com/servers/eserver/iseries/developer/java/devkit/rza ham70.htm Tõnis -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Peter.Daransky@xxxxxxxx i've a little problem to start JNI Program on OS/400 (V5R2). I've wroted small Java program wich should call a native function from ServiceProgram ... The code is very simple and stage "static { System.loadLibrary("MYSRVPGM"); }" seems to me thath works ok ! Also no errors !? But if i call the native function i'll always got a java.lang.UnsatisfiedLinkError() ... and i've tryed all possibilities with variables like -Djava.library.path etc., everything what i found in manual _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.