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



Rajesh,

It will include your class files only (no supporting libs).  Especially
once you have say 20 different .class files in 5 different
packages/folders, it saves having to copy them all across to the iSeries
one at a time and having to recreate the folder structure - you just make
one JAR file containing the lot and copy that across.  Anyway if you have
it working it doesn't matter too much which way you go, JAR files are just
my personal preference.

Regards,

Nigel Gay,
Computer Patent Annuities.



|---------+------------------------------>
|         |           "Anand, Rajesh"    |
|         |           <Rajesh_Anand@xxxxx|
|         |           m>                 |
|         |           Sent by:           |
|         |           java400-l-bounces@m|
|         |           idrange.com        |
|         |                              |
|         |                              |
|         |           22/06/2005 09:08 AM|
|         |           Please respond to  |
|         |           Java Programming on|
|         |           and around the     |
|         |           iSeries / AS400    |
|         |                              |
|---------+------------------------------>
  
>--------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                 |
  |       To:       "Java Programming on and around the iSeries / AS400" 
<java400-l@xxxxxxxxxxxx>                |
  |       cc:                                                                   
                                 |
  |       Subject:  RE: No Class definition found ERROR                         
                                 |
  
>--------------------------------------------------------------------------------------------------------------|




             Nigel,

             If I were to create a jar file from Eclipse.

             Does that file also includes the class (executable) or just
the supporting libs.

             rgds,

Rajesh Anand
Email:Rajesh_anand@xxxxxx


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



Rajesh,

If your class file is in /gmi/pme when your current directory should be /
not /gmi.

Personally tho I think its a lot simpler if you just export all your
classes in a JAR file and put that on the classpath, then there's no
confusion about having to create any correct folder structures or about
what current directory you need to be in.

HTH,

Nigel Gay,
Computer Patent Annuities.



|---------+------------------------------>
|         |           "Anand, Rajesh"    |
|         |           <Rajesh_Anand@xxxxx|
|         |           m>                 |
|         |           Sent by:           |
|         |           java400-l-bounces@m|
|         |           idrange.com        |
|         |                              |
|         |                              |
|         |           22/06/2005 08:06 AM|
|         |           Please respond to  |
|         |           Java Programming on|
|         |           and around the     |
|         |           iSeries / AS400    |
|         |                              |
|---------+------------------------------>

>--------------------------------------------------------------------------------------------------------------|

  |
|
  |       To:       "Java Programming on and around the iSeries / AS400"
<java400-l@xxxxxxxxxxxx>                |
  |       cc:
|
  |       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/
--------------------------------------------------------
--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


******************************************************
The information in this E-mail and in any attachment is
confidential and is intended solely for the addressee.
Access, copying, disclosure or use of such information
by anyone else is unauthorised. If you are not the
intended recipient please contact postmaster@xxxxxxxxxxxxxx
While reasonable efforts are made to ensure these files are free
of virus infection and offensive materials, if something of this
nature is inadvertently sent to you, please destroy it, accept
our apologies and contact postmaster@xxxxxxxxxxxxx with
details of the sender. We will ensure that action is taken
immediately to prevent any recurrence. Debenhams accept no
responsibility for any views expressed by the originator of this email.


Debenhams Retail plc (reg. no. 83395) Registered in England and Wales.
Registered office: 1 Welbeck Street, London W1G 0AA.

http://www.debenhams.com

******************************************************


--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.








********************************************************************************

The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.
********************************************************************************



--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


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