Hi Piotr,

jars must be listed separately in the classpath unless you use the extension mechanism, or Java 6 and later, where you can use wildcard-like syntax.

Joe Sam

Joe Sam Shirah - http://www.conceptgo.com
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400

----- Original Message ----- From: "Piotr Marciniak" <p.marciniak@xxxxxxxxxxx>
To: "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx>
Sent: Friday, March 12, 2010 8:18 AM
Subject: Re: Problem with running Java program on AS400

Thanks Keith,
I moved class files and jt400.jar to new library which i had made
before. Program start running but it is breake when it use jt400 liblary.

java.lang.NoClassDefFoundError: com/ibm/as400/access/AS400JDBCDriver
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.Error.<init>(Error.java:49)
at kursNbpToJde.displayXML(kursNbpToJde.java:73)
at kursNbpToJde.<init>(kursNbpToJde.java:53)
at kursNbpToJde.main(kursNbpToJde.java:143)
Java program completed with exit code 1

I have a problem on AS400 to add it to my program.
On Windows when i was class file and jt400.jar library in the same
folder I run it with commands:

set classpath=%classpath%;jt400.jar;
java kursNbpToJde

And everything works. In As400 I runs with command:

JAVA CLASS(kursNbpToJde) CLASSPATH('/test/')

What should I add to command as stated above

*Piotr Marciniak*

W dniu 2010-03-12 12:02, McCully, Keith (Insurance, Technology Services)

I have class file in root/bin. It's the same location as java, javac,

javaw aplications. I wrote command on AS400:

JAVA CLASS('kursNbpToJde')
Should I add something else?

Hi Piotr,

It is not a good idea to place your own class file in root/bin as this
is a system folder for the Qshell commands. Better to create you own
application folder off the root.

Also make sure that you have this application folder and jt400.jar in
your classpath.



The Royal Bank of Scotland plc, Registered in Scotland No. 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB

Authorised and regulated by the Financial Services Authority.

This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate.

This is the Java Programming on and around the iSeries / AS400 (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.

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 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.