Thanks for the starting point, however I hit a snag...

I wrote a simple hello world, and placed it in the IFS.

I then ran QSH.

I ran the   javac hello.java
and it created the HelloWorld.class file,
but when I ran     java HelloWorld
It came back with the error
  $                                                        
> java HelloWorld                                  
  java.lang.NoClassDefFoundError: HelloWorld       
  $                                               
I can see the HelloWorld.class file when I bring up Explorer..

Any ideas?  Thanks,  tim         
                                                           
> -----Original Message-----
> From: Eric Merritt [SMTP:cyberlync@yahoo.com]
> Sent: Thursday, June 22, 2000 12:27 PM
> To:   JAVA400-L@midrange.com
> Subject:      Re: Starting out question.
> 
> The same hello world program you write for the pc will
> work on the 400 as well. As for were to write the
> program. you can use the seu to write it but I would
> suggest you you just about any editor on your pc its
> just easier.
> 
> Just remember to use qshell to compile and run your
> program. The command is qsh. then use java and javac
> commands as you normally would.
> 
> 
> --- "Hatzenbeler, Tim" <thatzenbeler@clinitech.net>
> wrote:
> > I know nothing about JAVA on the AS/400.  
> > 
> > So I would like to learn,  what steps do I need to
> > write a hello world
> > program in java, just the 400. 
> > 
> > I know this question is strange, but can I write the
> > application just on the
> > 400?  Or do I have to write it on the PC as a
> > client?
> > 
> > Also, what's steps are needed to setup Java on the
> > 400?  Are all the pieces
> > there? Or do I have to install something?  My test
> > box is running v4r3
> > 
> > thanks for any help you might be able to provide...
> > 
> > tim
> > +---
> > | 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
> > +---
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send instant messages with Yahoo! Messenger.
> http://im.yahoo.com/
> +---
> | 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.