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
java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:40)
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
Try setting your classpath:
CLASSPATH('/test:/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar')
Assuming your class is in folder 'test'
I know that this is only a test but please be aware that there are
better ways of loading the classpath
Regards,
Keith
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Piotr Marciniak
Sent: 12 March 2010 13:19
To: Java Programming on and around the iSeries / AS400
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
java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:40)
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 Thanks /
*Piotr Marciniak*
W dniu 2010-03-12 12:02, McCully, Keith (Insurance, Technology Services)
pisze:
/
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.
Regards,
Keith
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.
*** WARNING : This message originates from the Internet ***
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.
As an Amazon Associate we earn from qualifying purchases.