Re: Wildcards in classpath?

"Tarlochan Bimbra" <bimbra-r/[email protected]>
Newsgroups gmane.comp.lang.as400.java
Message-ID <OF01130F17.91EDE6BA-ON002585BB.006A0774-862585BB.006A57F8@notes.na.collabserv.com>
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
expansion.

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

https://stackoverflow.com/questions/9320619/can-jni-be-made-to-honour-wildcard-expansion-in-the-classpath

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



From:	Justin Taylor <[email protected]>
To:	[email protected]
Date:	08/05/2020 02:09 PM
Subject:	[EXTERNAL] Wildcards in classpath?
Sent by:	"JAVA400-L" <java400-l-bounces-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org>



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

And for this single entry to find any JAR files in sub-dirs beneath
/java/myApps (e.g /java/myApps/Apple/A.JAR,
/java/myApps/Grape/Concord/B.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).


TIA
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_java400-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=WOb2SOjiTsNRXclCYG7V71axpoWHd1Zf_QazPfuXIrg&m=Laq8f7pau7U0rFIs-ivwm6nW58ui5Rxn0OSbx_pBlDE&s=GkrGZaBQ-2uKyejlI48lcHCWTBNmRtVrEs_LhszR9oA&e=

or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_java400-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=WOb2SOjiTsNRXclCYG7V71axpoWHd1Zf_QazPfuXIrg&m=Laq8f7pau7U0rFIs-ivwm6nW58ui5Rxn0OSbx_pBlDE&s=kJ8xmonK-yGZQzLib5BvLb4tq3SGmEeBVI34jYeRmE4&e=
 .

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.com&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=WOb2SOjiTsNRXclCYG7V71axpoWHd1Zf_QazPfuXIrg&m=Laq8f7pau7U0rFIs-ivwm6nW58ui5Rxn0OSbx_pBlDE&s=EhwnH-HerxsAUgs416tC7GYBUFxlQKC7ZlM0jzNbxqQ&e=




-- 
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.