× 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.



Finding jars and finding files may be two different things. Classpaths tell Java where to find jars. Paths tell programs where to find files. I can't remember the setup the log4j but the location of the properties file may need to be included in your path statement.

As for wildcards. There was a post in the last few weeks that dealt with that. It isn't "automatic". There is a specific way of accomplishing that and not all versions of JVM's support it IIRC.

Search the archives, it is in there somewhere.

Pete


Lim Hock-Chai wrote:
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.