The wildcard expansion is supported by java launcher.
When not using the java launcher, and using the JNI invocation API directly
( which is how RPG invokes the jvm), its up to the caller to provide a full
classpath and expand any wildcards required.

RUNJVA & QSHELL thus uses java launcher, so it supports the wildcard

Stackoverflow link shows there is similar issue in oracle jdk. Seems it's
not an IBM specific issue.

Tarlochan Singh Bimbra ( Tosh )
PartnerWorld for ISVs Technical Support and IBM i Global Support Center

From: Justin Taylor <jtaylor.0ab@xxxxxxxxx>
To: java400-l@xxxxxxxxxxxxxxxxxx
Date: 08/05/2020 02:09 PM
Subject: [EXTERNAL] Wildcards in classpath?
Sent by: "JAVA400-L" <java400-l-bounces@xxxxxxxxxxxxxxxxxx>

Is it possible to use wildcards in the Java classpath? I'd like to add
this entry:

And for this single entry to find any JAR files in sub-dirs beneath
/java/myApps (e.g /java/myApps/Apple/A.JAR,

I tried /java/myApps/* but it doesn't seem to work for me. FWIW, I'm
setting the CLASSPATH via a job-level ENVVAR and the calling apps are RPGLE
accessing the Java JARs via extProc(*java).

This is the Java Programming on and around the IBM i (JAVA400-L) mailing
To post a message email: JAVA400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,

or email: JAVA400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

Help support by shopping at with our affiliate

This thread ...


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

This mailing list archive is Copyright 1997-2020 by 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].