View Single Post
  #1 (permalink)  
Old 05-12-09, 04:22 PM
agfre44_9873 agfre44_9873 is offline
New Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Can't run simple Java HelloWorldApp.java

I installed jdk1.6.0_13. Program files->Java. Inside the java directory I have jdk1.6.0_13 folder, jr6 folder, and HelloWorldApp.java. I reinstalled jdk6 about six times already. I'm new to this. I am following the directions from http://java.sun.com/docs/books/tutor...ava/win32.html.
At the following link...
http://java.sun.com/javase/6/webnote...l-windows.html I am using the path on step four...
C:> "\Program Files\Java\jdk1.6.0_<version>\bin\javac" MyClass.java.

Now, I don't know if Sun microsoft wantds me to include the double qoutes or not, so I try it without both...

The following is from cmd...


C:\Documents and Settings\charles>cd c:\

C:\>cd Program Files

C:\Program Files>cd java

C:\Program Files\Java>dir
Volume in drive C has no label.
Volume Serial Number is 0C53-36D7

Directory of C:\Program Files\Java

05/10/2009 07:50 AM <DIR> .
05/10/2009 07:50 AM <DIR> ..
05/10/2009 07:48 AM 74 apth.txt
05/10/2009 07:50 AM 1,410 error.txt
05/10/2009 07:46 AM 1,910 HelloWorldApp.java
05/10/2009 07:41 AM <DIR> jdk1.6.0_13
05/10/2009 07:18 AM <DIR> jre6
3 File(s) 3,394 bytes
4 Dir(s) 11,360,313,344 bytes free

C:\Program Files\Java>cd c:\

C:\>"\Program Files\Java\jdk1.6.0_13\bin\javac" HelloWorldApp.java
javac: file not found: HelloWorldApp.java
Usage: javac <options> <source files>
use -help for a list of possible options

C:\>\Program Files\Java\jdk1.6.0_13\bin\javac HelloWorldApp.java
'\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\>"\Program Files\Java\jdk1.6.0_13\bin\javac" HelloWorldApp.java
javac: file not found: HelloWorldApp.java
Usage: javac <options> <source files>
use -help for a list of possible options

C:\>

Any ideas anyone...please!: crying:
Reply With Quote