|
|
Posted by Kid on April 17, 19100 at 01:17:40:
From: Kid
I AM TRYING TO COMPILE "HelloWorldApp.java" USING JDK1.2.2
Well I have created my own site and it was suggested to me to add a few features. So I decide that the best way was good time to learn Java. I got a few books read them and thought I was getting the basics. I wanted to create my own applet and
in the book they had talked about java.sun.com. I looked it up and found my first applet tutorial HelloWorld at http://java.sun.com/docs/books/tutorial/getStarted/cupojava/
win32.html#top. Deciding to test the JDK development kit this would be the way to do it. So I down loaded jdk1.2.2 and copied and pasted the source code as instructed:
/**
* The HelloWorldApp cl implements an application that
* simply displays "Hello World!" to the standard output.
*/
cl HelloWorldApp
public static void main(String[] args) {
// Display "Hello World!"
System.out.println("Hello World!");
}
}
Saved on my c drive under java as "HelloWorldApp.java", including the double quote marks. So, I go C:\java\HelloWorldApp.java with not txt behind it
Then I tried to compile it. I opened MS-DOS Prompt, and entered at the C:WINDOWS> command cd c:\java (* #1)
*see attached DOS1.gif to visually see all steps I actual took in dos prompt
and got:
C:\java> command (*#2)
so far so good right?
so I enter: dir (*#2)
(*#3) for what I got
At this point I have added several of the other things in attempt to get this to work (the major thing is that HellowWorldApp.java was there), but with creating the clads this is sort of futile, right?
then I entered the command javac HelloWorldApp.java
result was (*#5) nothing happened except I go the next prompt line
C:>java>
I have also used C:\jdk1.2.2\bin\javac HelloWorldApp.java to specify path
then I read about complications with jdk1.2.2 (with such a simple source file it should be any problem, right?) So I down lorded jdk1.1.8. and re-did the hole thing, but used C:\jdk1.1.8\bin\javac HelloWorldApp.java
same result skip line C:\java>
I would be really grateful if some one could tell me what I am doing wrong. I thing it has to be some little thing that I am not doing right (I hope). Being new to the hole Java thing I just want to start working with what I have learned, and am very exited to do so, but with out being able to compile the data I am sort of stuck going no were. If any one could figure out this I would greatly appreciate it, or has any alternative suggestion, or any thing else that may help please do so. If you can help at all or have any suggestions contact me at jouellet@mai.wma.put.k12.ma.us or jouelletjouellet@netscape.net
Thanks,
Kid
READ THE GREAT BOOKS
TERM PAPERS, RESEARCH PAPERS, ESSAYS
DR. ELLIOT'S NORTH AMERICAN GREAT BOOKS TOUR--COMING TO A BOOK
STORE NEAR YOU
[Shakespeare Forums]
[Bible Forums]