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



        Chris,
        
        First cmd run is setting cd /gmi..

        class is in - /gmi/pme/GetIndexService.class

        classpath is....  
export -s                                                                       
                                      
CLASSPATH=.:/java/xml/jdom/build/jdom.jar:/java/xml/jdom/lib/xerces.jar:/java/xml/jdom/lib/xml-apis.jar:/java/xml/jdmo
 
/lib/saxpath.jar:/java/xml/jdom/lib/jaxen-jdom.jar:/java/xml/jdom/lib/xalan.jar:/java/jt400.jar
                        

        rgds,

Rajesh Anand
Email:Rajesh_anand@xxxxxx


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On 
Behalf Of Colin Williams
Sent: 22 June 2005 11:43
To: Java Programming on and around the iSeries / AS400
Subject: RE: No Class definition found ERROR


Rajesh,

Where is your class on the IFS?
What is your classpath?

Cheers
Colin.W

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On 
Behalf Of Anand, Rajesh
Sent: 22 June 2005 11:36
To: Java Programming on and around the iSeries / AS400
Subject: RE: No Class definition found ERROR


        Chris,

        Thanks for that.

        I tried what you suggested but it still gives me the same error.

        Here is the sequence of the cmds I ran in qshell....

        >java gmi.pme.GetIndexService 2005-04-01 2005-04-30 dg                  
                            

        java.lang.NoClassDefFoundError: gmi/pme/GetIndexService                 
                           
      java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:94)     
                   
      java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:50)             
                   
      java/lang/NoClassDefFoundError.<init>(Ljava/lang/String;)V+1 
(NoClassDefFoundError.java:47)  
        £                                                                       
                           
        >ls /gmi/pme/                                                           
                            
        GetIndexService.class                                                   
                           
        £                                                                       
                           
        >pwd                                                                    
                            
        /gmi                                                                    
                           
        £

        rgds,                                                                   
                               

Rajesh Anand
Email:Rajesh_anand@xxxxxx


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On 
Behalf Of Price, Chris
Sent: 22 June 2005 11:27
To: 'Java Programming on and around the iSeries / AS400'
Subject: RE: No Class definition found ERROR


If your class was in package com.whatever, then the java command would need to 
be:

java com.whatever.GetIndexService 2005-04-01 2005-04-30 dg

you also need to be at the root of the package structure - i.e. if you type the 
command ls, you should see the com folder listed, not the java .class file - 
remmember that in the java the folders the classes are in are part of the 
structure.

Hope this helps,
Chris.

-----Original Message-----
From: Anand, Rajesh [mailto:Rajesh_Anand@xxxxxx]
Sent: 22 June 2005 11:23
To: Java Programming on and around the iSeries / AS400
Subject: RE: No Class definition found ERROR


        Chris,

        You are spot on, the class is in a package.

        So, how to I specify the package in the call statement.

        I've already specified "." in the classpath.

        regards,

Rajesh Anand
Email:Rajesh_anand@xxxxxx


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Price, Chris
Sent: 22 June 2005 11:18
To: 'Java Programming on and around the iSeries / AS400'
Subject: RE: No Class definition found ERROR


Rajesh,

Couple of suggestions:

You haven't specified a package name on the java call. This will only work if 
the class isn't within a package.

Check your classpath - you musy include a "." if you want the current folder to 
be included.

Hope this helps,
Chris.

-----Original Message-----
From: Anand, Rajesh [mailto:Rajesh_Anand@xxxxxx]
Sent: 22 June 2005 11:12
To: java400-l@xxxxxxxxxxxx
Subject: No Class definition found ERROR


Folks,

        I've a project designed using Eclipse and tested on PC and works well.

        I then moved all .class files to IFS on AS400 and tried calling it from 
qshell after setting classpath.

        Cmd ran....

        java GetIndexService 2005-04-01 2005-04-30 dg  
 

        But it gave me the following error....


java.lang.NoClassDefFoundError

      java/lang/Error.<init>()V+1 (Error.java:41)

      java/lang/NoClassDefFoundError.<init>()V+1
(NoClassDefFoundError.java:37)

 
java/lang/ClassLoader.defineClass(Ljava/lang/String;^BIILjava/security/Prote
ctionDomain;)Ljava/lang/Class;+29 (ClassLoader
java:476)

 
java/security/SecureClassLoader.defineClass(Ljava/lang/String;^BIILjava/secu
rity/CodeSource;)Ljava/lang/Class;+27 (SecureC
assLoader.java:101)

 
java/net/URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Lj
ava/lang/Class;+176 (URLClassLoader.java:287) 
 
java/net/URLClassLoader.access£1(Ljava/net/URLClassLoader;Ljava/lang/String;
Lsun/misc/Resource;)Ljava/lang/Class;+1 (URLCl
ssLoader.java:231)


        Can someone help pls.

        Thanks in advance.


Rajesh Anand
Email:Rajesh_anand@xxxxxx
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to
this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------

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.