> 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: email@example.com [SMTP:firstname.lastname@example.org] > 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: email@example.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: firstname.lastname@example.org +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.