Actually wildcards for .jar (or .JAR) extensions have been supported since
JDK 6. See
(Understanding class path wildcards). All you need to specify is


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Pete Helgren
Sent: Wednesday, May 29, 2013 5:27 PM
To: Java Programming on and around the IBM i
Subject: Re: .jar/.tar file question #2

I am glad Dan included this. If you are new to Java the whole classpath
thing can get a little confusing. When I started with Java, I treated the
classpath like a PATH statement: Just list the folders where the jar's are
hanging out and that is all you need - NOT! Your classpath is a full list
(a jar list would be a better name when using jars...) So if you have three
jars in a folder: jar1, jar2, and jar3 you have a classpath like this:

Library lists spoiled us IBM i folks......

Pete Helgren
GIAC Secure Software Programmer-Java

On 5/29/2013 4:23 PM, Dan Kimmel wrote:
You really don't want those in Java400/ext. That's where java extensions
go. Java extensions are not subject to the same kind of security checks as
normal jars and it is really hard to override jars in that path. For the
most part, only security extensions to java should go in the ext path.

Create a directory in the IFS and put all your POI jars in there. When you
start your RPG program, make sure the classpath includes a full path
to*EACH* jar.

FWIW, depending on what operating system you're using, java will reside in
either /QIBM/ProdData/Java400 or /QOpenSys/QIBM/ProdData/Java. All the J9
JVM's live only in QOpenSys.

This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

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

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.