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>
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
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 midrange.com by shopping at amazon.com with our affiliate
As an Amazon Associate we earn from qualifying purchases.