• Subject: Re: Hello Worl - Java Program - Help me please...
  • From: Martinus Ivan <IVANM@xxxxxxxxxxxxxxxx>
  • Date: Fri, 10 Mar 2000 09:19:36 +0700

> The following work for me.
> 1. To put a stream file to /kalyan directory :
>  
> CPYTOSTMF Frommbr('/QSYS.LIB/YourLib.LIB/KKRSRC.FILE/Hello.MBR')
> ToSTMF('/Kalyan') STFMOPT(*Add) STMFCODPAG(819)
> 
> 2. ADDENVVAR ENVVAR('CLASSPATH') VALUE('/kalyan')
>     make sure CLASSPATH in Uppercase
> 3. Check if the Hello.Java go to your directory
> 4. And compile it.....
> 
For Detail description : News/400 have article "Seven Essential AS/400 Java
Command"
 
http://www.news400.com/artarchive/index.cfm?fuseaction=viewarticle&ArticleID
=13280 

> regard,
> Ivan
> 
>   
> -----Original Message-----
> From: kkalyan@md.in.dsqsoft.com [SMTP:kkalyan@md.in.dsqsoft.com]
> Sent: Monday, March 06, 2000 11:23 PM
> To:   JAVA400-L@midrange.com
> Subject:      Hello Worl - Java Program - Help me please...
> 
> 
> 
> Hi all,
> 
> I have started with my Java/400, and I have run the Hello world that is
> shipped
> along with the system. When I try to create my own Hello world program,  I
> could
> not succeed in it. I have done the following.
> 
> 1. I have created a source physical file with the name KKRSRC.
> 
> 2. I have created a txt called Hello.java
> 
> 3. I have converted that to a stream file with the same name 'Hello.java'
> in the
> Ascii mode. (Here I dont know how to specify the path for the stream file
> that
> is going to get created)
> 
> 4. Also I tried to set the class path. In fact I created one directory
> called
> Kalyan, but I dont know how to place the stream file into that directorty.
> 
> 5. I tried to give the command javac Hello.java
> 
> 6. It gives an error message saying 'Cant read Hello.java'
> 
> Can some one please guide me, as it is the start for me.
> 
> Thanks,
> 
> Kalyan
> 
> 
> 
> +---
> | 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-2022 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.