Gary, appreciate the wildcard hint !
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary L Peskin
Sent: Wednesday, May 29, 2013 6:43 PM
To: 'Java Programming on and around the IBM i'
Subject: RE: .jar/.tar file question #2
Actually wildcards for .jar (or .JAR) extensions have been supported since JDK 6. See
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html
(Understanding class path wildcards). All you need to specify is /folder/path/to/jars/*.
Gary
-----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:
/folder/path/to/jars/jar1.jar;/folder/path/to/jars/jar2.jar;/folder/path/to/
jars/jar3.jar
Library lists spoiled us IBM i folks......
Pete Helgren
www.petesworkshop.com
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,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/java400-l.
--
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,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.