× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Scott

The jar file is not present on the ext directory. If i use the classpath
variable , the java enviroment return an exception

If i put the jar file on the ext i have no problem but is not what i need

Basilio

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: lunedANOT 10 dicembre 2007 11.17
To: RPG programming on the AS400 / iSeries
Subject: Re: classpath problem



It doesn't matter what your CLASSPATH looks like. The system will

*always* use a JAR file from /QIBM/UserData/Java400/ext before anything

in your CLASSPATH.



It won't even look at your CLASSPATH if you have it in the "ext"

directory. The stuff in the "ext" directory will always be used first,

no matter what.



If you want to provide more than one environment with different copies

of the JAR file, you should remove the JAR Files from the "ext"

directory, and put them in your CLASSPATH instead. That way, you can

set the CLASSPATH differently when you want to use a different version

of the JAR File.





Basilio Merlino wrote:

> Hi Eric

>

>

>

> The classpath value at job level is

>

> CLASSPATH '/POI2/poi2.jar'

>

> On the attach file you find a jpg of the root structure

>

>

>

> Thanks Basilio

>

> -----Original Message-----

> From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]

> On Behalf Of DeLong, Eric

> Sent: venerdANOT 7 dicembre 2007 23.15

> To: RPG programming on the AS400 / iSeries

> Subject: RE: classpath problem

>

>

>

> Can you show the classpath you are trying to use? Since OS400
invokes

> Java only once per job, you must ensure that you set your classpath

> correctly before you run any java.

>

>

>

> Eric

>

>

>

> -----Original Message-----

>

> From: rpg400-l-bounces@xxxxxxxxxxxx

>

> [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Basilio Merlino

>

> Sent: Friday, December 07, 2007 3:18 PM

>

> To: rpg400-l@xxxxxxxxxxxx

>

> Subject: R: classpath problem

>

>

>

>

>

> Hi Eric

>

> What i want to do is not to put the jar file on the ext directory
but

> to

>

> use the /Poi2/ directory under the root.

>

> But the CLASSPATH enviroment variable set at job level dont'
work. If

> i

>

> use the Poi2 directory with the classpath enviroment variable i
have a

>

> java exception error

>

> realy i don't understand what happen

>

>

>

> Thanks

>

> Basilio

>

>

>

> -----Messaggio originale-----

>

> Da: rpg400-l-bounces@xxxxxxxxxxxx per conto di DeLong, Eric

>

> Inviato: ven 07/12/2007 17.00

>

> A: RPG programming on the AS400 / iSeries

>

> Oggetto: RE: classpath problem

>

>

>

> Java has two classpath properties, system and user. The

>

> /QIBM/UserData/Java400/ext directory is part of the system
classpath,

>

> which is searched before the user classpath. IMO, one need to be
very

>

> careful when putting jars into /ext...

>

>

>

> hth,

>

> Eric

>

>

>

> -----Original Message-----

>

> From: rpg400-l-bounces@xxxxxxxxxxxx

>

> [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Basilio Merlino

>

> Sent: Friday, December 07, 2007 10:57 AM

>

> To: rpg400-l@xxxxxxxxxxxx

>

> Subject: classpath problem

>

>

>

> Dear all

>

> I have a very strange situation about the classpath setting.

>

> I have set the classpath to the value

>

> CLASSPATH '/Poi2/poi2.jar'

>

> But the iseries ignore this information and use always the jar
file

>

> present on the /QIBM/UserData/Java400/ext directory

>

> Do you have an idea why this happen ?

>

> Thanks in advance for your support

>

> --

>

> This is the RPG programming on the AS400 / iSeries (RPG400-L)
mailing

> list

>

> To post a message email: RPG400-L@xxxxxxxxxxxx

>

> To subscribe, unsubscribe, or change list options,

>

> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l

>

> or email: RPG400-L-request@xxxxxxxxxxxx

>

> Before posting, please take a moment to review the archives

>

> at http://archive.midrange.com/rpg400-l.

>

>

>

> --

>

> This is the RPG programming on the AS400 / iSeries (RPG400-L)
mailing

> list

>

> To post a message email: RPG400-L@xxxxxxxxxxxx

>

> To subscribe, unsubscribe, or change list options,

>

> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l

>

> or email: RPG400-L-request@xxxxxxxxxxxx

>

> Before posting, please take a moment to review the archives

>

> at http://archive.midrange.com/rpg400-l.

>

> --

>

> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list

>

> To post a message email: RPG400-L@xxxxxxxxxxxx

>

> To subscribe, unsubscribe, or change list options,

>

> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l

>

> or email: RPG400-L-request@xxxxxxxxxxxx

>

> Before posting, please take a moment to review the archives

>

> at http://archive.midrange.com/rpg400-l.

>

>

>

>

>

>

>

>

>

> --

>

> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list

>

> To post a message email: RPG400-L@xxxxxxxxxxxx

>

> To subscribe, unsubscribe, or change list options,

>

> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l

>

> or email: RPG400-L-request@xxxxxxxxxxxx

>

> Before posting, please take a moment to review the archives

>

> at http://archive.midrange.com/rpg400-l.

>

>

>



--

This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list

To post a message email: RPG400-L@xxxxxxxxxxxx

To subscribe, unsubscribe, or change list options,

visit: http://lists.midrange.com/mailman/listinfo/rpg400-l

or email: RPG400-L-request@xxxxxxxxxxxx

Before posting, please take a moment to review the archives

at http://archive.midrange.com/rpg400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.