× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joe Sam had a post in JAVA400 that said this about a "wildcard" or "search the folders for jars" option:

One possibility is the Extension Mechanism Architecture using the java.ext.dirs system property. If you do that, you should include the standard extension directory as well. See:

http://java.sun.com/j2se/1.4.2/docs/guide/extensions/spec.html#installed

Posted April 20. Search the archives

Pete


Lim Hock-Chai wrote:
Oops. The problem on # 1 is actually due to the fact that I've a
version of log4j.properties in my currect directory. It was pciking
that one up. Once I removed that everyting works just the same as the
RUNJVA command. Sorry about that.

Problem# 2 is still a problem.

thanks

"Lim Hock-Chai" <Lim.Hock-Chai@xxxxxxxxxxxxxxx> wrote in message
news:<mailman.7628.1242409818.23468.rpg400-l@xxxxxxxxxxxx>...
I run into two classpath problems that I just not able to explain:
Problem 1: When calling a java method from RPG, the java method is being invoked
but somehow it is not able to find the log4j.properties that is within
the classpath: Below is the D spec.
D AccDelegateC PR O ExtProc(*JAVA: D
'com.arch.boss.as400.rpg.AccountDele-
D gate': D *CONSTRUCTOR) D 20I 0 Value I've a CL program that uses RUNJVA to run a java application and it
seems to be able to find the lo4j.properties within the classpath.
My log4j.properties is in
/WAS61/PROFILES/TSTAPPSRV01/installedApps/Boss.ear dir and my CLASSPATH
environment variable is set as
/WAS61/PROFILES/TSTAPPSRV01/installedApps/Boss.ear.
Problem 2: Should I be able to use wildcard for classpath? Sun doc sees to
indicate that I should be able to do this. But the same RPG program
indicated on problem 1 doesn't seems to understand wildcard.
When I set the classpath as /was61/java/endorsed/ibmorb.jar, it works.
When I set the classpath as /was61/java/endorsed/*, it failed.
Thanks
----------

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.