Thanks for your message at 12:57 PM 12/29/99 -0500, Singh, Sushil.  Your
message was:

>Environment: IBM HTTP and WebSphere under AS/400 environment.
>
>I am having one class with all DataAccess releted methods which I have
>created in one package say "RCMPackage" under root folder. Its successfully
>compiled.  I have added this folder "/RCMPackage" in my CLASSPATH
>environment variable.  Now if I am using this class in any program its
>giving compilation error stating that "Package RCPPackage not found in
>import".

  Is there any typo? I saw you mentioned that you put the package under
RCMPackage but the package that you import is RCPPackage (or what you
trying to use).
If your RCPPackage is under the RCMPackage that it should be ok..then there
must be something else wrong.
But if there is a typo and the package that you are trying to use is
actually RCMPackage then the classpath should point to the root not to the
directory (and if the package is in a JAR file then it should point to the
jar file directory not just the directory).

Try check the authorization for the directory (use WRKLNK
'/RCMPackage'  choose option 9 if i am not mistaken).

Are you saying that WebSphere cannot find the classpath? or just during
compilation.  Depending on what version of WebSphere you use (1.1, 2.0x, or
3.0x), they have different way to set the classpath.

>If I do the same thing under a PC environment its working fine.
>
>Also if I issue a "set" command in STRQSH (QShell), its not showing my
>folder in the CLASSPATH. But if I issue "echo $CLASSPATH" then its showing
>my package folder in the CLASSPATH.

In AS/400 the command to set the classpath is not "set" but "export".  e.g.
export /RCMPackage:$CLASSPATH  (this will add the /RCMPackage directory
into your classpath in front of your previous classpath).
If you need more help with the QSHELL command, send me an email directly
and I will try to find the information for you (I saw one URL before that
has this information--but I am not sure whether it is accessable from
internet :(

---------------------------------------------------------------------------
Irawan Endarwati

http://members.xoom.com/iwn
USA


-Mail:  [EMAIL PROTECTED]
----------------------------------------------------------------------------

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to