|
This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] System.loadLibrary is how you would load a Windows DLL or Unix SO to call a native (meaning non-Java) program using JNI. If you want to call an iSeries *PGM or *SRVPGM you either need to define it as a StoredProcedure and call it using JDBC or use the AS/400 Toolbox and the classes it provides for calling programs. Most people probably use the PCML method provided in the Toolbox, but the JDBC method is a nice option if you need to keep your code "light" and do not otherwise need the Toolbox. However, if this is running on a non-iSeries system you would need the Toolbox anyway to get the JDBC driver. Mark P.Goovaerts@Clipper.Be Sent by: java400-l-admin@midrange.com 12/05/2002 10:40 AM Please respond to java400-l To: wdsci-l@midrange.com, web400@midrange.com, java400-l@midrange.com cc: Subject: java to rpg problem This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] Anyone using java to rpg-modules connections on iSeries??? We have written an object-oriented RPG program following MVC pattern. The RPG program runs fine and now we have written a java program which uses the RPG modules but displays result in a GUI. following initialisation is used: static { System.loadLibrary("PROGRAMNAME"); } which returns following error when testing class: java.lang.UnsatisfiedLinkError: no PROGRAMNAME (PROGRAMNAME.dll) in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1380) at java.lang.Runtime.loadLibrary0(Runtime.java:766) at java.lang.System.loadLibrary(System.java:849) at Agents.AgentsController.<clinit>(AgentsController.java:35) Exception in thread "main" I believe that java is trying to load a local dll in stead of searching the programmodule on the iSeries but how do we tell java to search on the iSeries??? " I don't have problems, only challenges... " Patrick Goovaerts WebMaster Clipper Support nv TEL : 0032 (0)3 5453991 GSM: 0498 610 325 WEB: www.conti7.be _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com 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.