|
Well, one of the Java system properties is "java.library.path", which according to the documentation contains "OS/400 library list". So something along the lines of java -Djava.library.path=LIB1:LIB2:LIB3 yourClass MIGHT work. I don't know if : is the correct separator here but examining the existing value of the property would tell you that. Setting system properties in servlets is not done this way though, you have to do a configuration thing. PC2 -----Original Message----- From: Mark Phippard [mailto:MarkP@softlanding.com] Sent: April 25, 2001 09:02 To: JAVA400-L@midrange.com Subject: Controlling Library List Is there an easy and consistent way to control the library list that is in effect when a Java program executes? I have a Java class that I am creating that will be making calls to various "native" programs, as well as possible accessing files. This class will be executed in a variety of ways, possibly from a servlet in WebSphere, possibly from a CL program via RUNJVA, etc. I would like to control the library list externally so that I can run the same program in different environments, therefore I do not want the Java class itself to manipluate the library list. How can this be done? I have seen references to setting some Java properties, but I am not sure if that is specific to WebSphere or could always be used. I would be more than happy if I could just be pointed to the relevant documentation if it exists. Thanks +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
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.