JAva on AS/400 using Jt classes problem

Hi I successfuly compiled and ran a simple Java program on AS/400 but when I am trying
to access  AS/400 classess (e.g AS400 class or Program Call) I am getting
an error message during compilation:

java:24: cannot resolve symbol
symbol  : class AS400                  


I changed my $CLASSPATH to point to

/QIBM/ProdData/HTTP/Public/jt400/lib and /QIBM/ProdData/OS400/Java/jdk/lib but without any
success
iskibinskaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shalom CarmelCTOCommented:
you need the jt400.jar or jt400ntv.jar in your classpath. I believe that these files cn be found in one of the locations you mentioned.


0
iskibinskaAuthor Commented:
But I just said that I added those location to my $CLASSPATH
0
Shalom CarmelCTOCommented:
Add the jar files Explicitly
/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar
0
iskibinskaAuthor Commented:
Could you please tell me how to do it ?
0
Shalom CarmelCTOCommented:
simply add the whole qualified name of the jt400.jar file, including the "jt400.jar" bit.
something like the following, which uses the location on my server.

java -cp /QIBM/ProdData/OS400/jt400/lib/jt400Native.jar  YourJavaProgram

notice that the jar file is mentioned explicitly.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.