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



Hello , 

                I am totally new to Java for As/400 and Java too. Although
this problem has been addressed by any one ,still I am facing problems. I
have created a class path as follows. I am having V4R4 newly installed
AS/400. I was doing step by step as advised by the 
http://publib.boulder.ibm.com/pubs/html/as400/ic2924/info/java/rzaha/devkit.
htm
<http://publib.boulder.ibm.com/pubs/html/as400/ic2924/info/java/rzaha/devkit
.htm>  web site. 
I have created one class file named "B" in my PC and copied to the as400
directory 
/QIBM/ProdData/Java400/com/ibm/as400/system/

I tried to run the RUNJVA command example( RUNJVA
CLASS(com.ibm.as400.system.Hello)) 

RUNJVA CLASS('B')
But it is giving below the following error 

 java.lang.NoClassDefFoundError: B                   
 Java program completed with exit code 1             
                                                     
The class path is given below. 

Display Environment Var (*JOB)                         
 

 Name  . . . . . . . . . :   CLASSPATH

 

 

 Value . . . . . . . . . :
'.:/Java400.zip:/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar:/QIBM/ProdDat
a/Java400/com/ibm/db2/jdbc/app/db2_classes.zip:/QIBM/ProdData/Java400/lib/jd
kptf.zip:/QIBM/ProdData/Java400/com/ibm/as400/system/:QIBM/P
rodData/Java400/'


I also tried another method creating a source physical file and copying
through Copy stream file , that also. Failed 

Please help me in this regard. 

        -----Original Message-----
        From:   Mike Perez [SMTP:MPEREZ@grinfire.com]
        Sent:   Tuesday, May 23, 2000 1:52 AM
        To:     Java400 (E-mail)
        Subject:        path problem

        I'm another java newbie, and I'm having trouble running a simple
program on
        the as/400.  I created the CLASSPATH variable and it points to the
jt400.zip
        file.  The source sits in a folder called
projects(/java/user/projects) and
        I was able to compile it using javac in QShell.  The error I get
when I try
        to run it is: java.lang.NoClassDefFoundError:
/java/user/projects/Test
        though I can see the Test.class file in the projects folder using
Win
        Explorer.  I feel my CLASSPATH needs to include /java/user/projects,
but
        don't know how to add it.  What am I missing?  

        Thanks,
        Mike
        +---
        | This is the JAVA/400 Mailing List!
        | To submit a new message, send your mail to JAVA400-L@midrange.com.
        | To subscribe to this list send email to
JAVA400-L-SUB@midrange.com.
        | To unsubscribe from this list send email to
JAVA400-L-UNSUB@midrange.com.
        | Questions should be directed to the list owner: joe@zappie.net
        +---
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

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.