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



Try changing the "L" in "Lib" in classpath to "l" as in "lib". I have heard
odd rumours of people have problems with case sensitivity of classpath
specifications.

Frances Stewart
WebSphere Application Server for iSeries 400
External: (507) 253-2795
Tie-line: 8-553-2795
IBM Rochester




                      "Joe Pluta"
                      <joepluta@PlutaBr        To:       
<java400-l@midrange.com>
                      others.com>              cc:
                      Sent by:                 Subject:  RE: Error running Java 
program on iSeries
                      java400-l-admin@m
                      idrange.com


                      10/11/2002 10:46
                      PM
                      Please respond to
                      java400-l





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

_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
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-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.