Everything is theoretically impossible, until it is done. ~Robert A. Heinlein
When I said exactly I meant exactly. Show us your input and output. Also tell us what your classpath is. We already know your path is correct, at least until you upgrade to update 45, because we know you get different error messages from a wrong path. Tell us what you get from ECHO %CLASSPATH%Yesterday, I wrote: . . . tell us exactly what happens, with folder names and everything. . . .
When you use javac correctly you usually get no output. Any output you are getting is probably error messages.steven collins wrote: . . .when i type javac i get alot of relevent info . . .
At first I thought I had given you misleading information, but when I looked at this Java Tutorials page, it appears that is a real response (scroll down to the bottom). It appears to mean that there isn't a CLASSPATH set, which is the correct configuration.steven collins wrote:when i type that in i get %CLASSPATH%
A program doesn't usually have a classpath; you supply a classpath to the OS.The program i am trying to get has the classpath HelloWorldApp
I type javac HelloWorldApp.java and get:
javac: file not found: HelloWorldApp.java . . .
Campbell Ritchie wrote:When you use javac correctly you usually get no output.
steven collins wrote:hello im going to download netbeans to help is this cheating and will it help
steven collins wrote:I have typed programs in word pad and note pad i know one is text free format. These are in C:\Java programs. when i type javac HelloWorldApp.java and i always get nothing.
steven collins wrote:C:\Users\steven>dir
Volume in drive C has no label.
Volume Serial Number is CC14-5092
Directory of C:\Users\steven
Campbell Ritchie wrote:There ain't any sign of any Java files in that dir output. You can't find them becuase you aren't in the correct directory, and they are somewhere else.
The Example.java file posted earlier is a Hello World class by a different name. Hello World serves to confirm your compilation process is running correctly. I recommend you follow the procedure described here; the instructions happen to be the same (I think) in Windows®. Unix, Mac and Linux. For Foo read Example, HelloWorld or something else. On subsequent occasions when you run Java, omit the line starting mkdir. Now find all your other.java files and move them to that folder; when it starts to get too full you can create packages there.
steven collins wrote:Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\steven>cd C:\Program Files\Java\Java programs
C:\Program Files\Java\Java programs>dir
Volume in drive C has no label.
Volume Serial Number is CC14-5092
Directory of C:\Program Files\Java\Java programs
18/10/2013 21:01 <DIR> .
18/10/2013 21:01 <DIR> ..
14/10/2013 15:18 492 Example.java..rtf
14/10/2013 17:30 356 Example2.java..txt
14/10/2013 17:00 1,901 HelloWorldApp.java.java
3 File(s) 2,749 bytes
2 Dir(s) 871,884,988,416 bytes free
C:\Program Files\Java\Java programs>
Lasagna is spaghetti flvored cake. Just like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|