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



> > From: "Mark Abbott"
> >
> > I am having problems running a program through QSH.  I set the classpath
> > using this command:
> >
> > export -s CLASSPATH=.:/QIBM/ProdData/HTTP/Public/jt400/Lib/jt400.jar
> >
> > I also set the CLASSPATH on the iSeries with the ADDENVVAR command.
> >
> > The program compiled fine in the QSH and the class file was
> created.  When
> I
> > run the program in QSH or using the RUNJVA command I get the following
> > error.
> >
> > java.lang.NoClassDefFoundError: com/ibm/as400/access/AS400

> From: Mike Silvers
>
> The AS400 class is not in that jar.  I do not remember which jar it is in,
> but I put all of the toolbox jar's in the classpath whenever I use them.

Actually, the AS400 class is in jt400.jar, although it gets a little
confusing depending on which version of OS/400 you're using and whether or
not you want to use native optimizations.

Which version of OS/400 are you running?

On V4R5, I have the following class:

========
import com.ibm.as400.access.*;

public class CheckJt400 {
public static void main(String[] args)
{
        System.out.println(AS400.CENTRAL);
        System.exit(0);
}
}
========

The source and compiled class live in /temp.

I then went onto a command entry screen and did the following (note that I
don't even use the export command):

ADDENVVAR ENVVAR(CLASSPATH)
  VALUE('.:/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar')

QSH

  $
> cd temp
  $
> java CheckJt400
  6
  $

"6" is the correct output (that's the value of the static CENTRAL in the
AS400 class).

-----------

It could be an authority problem.  Try the following command and let us know
the results:

DSPAUT OBJ('/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar')



Hope this helps.

Joe



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.