![]() |
|
#1
|
|||
|
|||
Java will not work on Windows Vistaok, so im in a computer class and for the love of money i can not get java to work at all.
Here is my post, sorry for speed, ill try and keep it short. Ok so i downloaded jdk1.6.0_16 last night. I installed and all was going well, after install i got the path which is C:\Program Files\Java\jdk1.6.0_16\bin put that in the path area proceeding some other stuff that was already written there. From there i did the obvious and wrote Hello World, saved that as HelloWorldApp.java saved as text through Notepad (saved on desktop) upon that i went to CMD, and started cd Desktop, then proceeded to javac HelloWorldApp.java in which case it says javac is not a recognized command. Im lost |
|||
|
#2
|
||||
|
||||
Re: Java will not work on Vista, please help!Can you give more detail as to how/where the path change was applied?
Would you mind posting the entire path here? The last part seems about changing to the desktop to compile is ok, but the path may not still be correct. From the prompt at the desktop, you could also provide the full path to javac executable to attempt a compile: Example: C:\User\turbo\desktop>"\Program Files\Java\jdk1.6.0_16\bin\javac" HelloWorldApp.java Of course, doing it that way every time is annoying until the path is corrected. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
||||
|
||||
Re: Java will not work on Vista, please help!Quote:
Do: Windows Key + Break Key Click or Tab/Arrow Keys to the "Advanced" tab ALT + n (Environment Variables Tab) ALT + n (New user environment variable) ALT + n (Name...or just start typing) Use the following variable name: JAVA_HOME (press tab or ALT + v for Value) Enter: C:\Program Files\Java\jdk1.6.0_16 Press Enter or click OK button IF exists a variable named PATH edit it otherwise create it using the same basic steps as above, but modify the Value to: %PATH%;%JAVA_HOME%\bin **if** editing, add ';%JAVA_HOME%\bin' (without single quotes) to the END of your PATH environment variable Value. ...click OK until you're out of the series of dialogs. Windows + r (Run) Type: cmd (press enter) At the prompt type: javac (press enter) You should see something like: Code:
Locate/edit your source code to be something like: JAVA Code:
Compile command: C:\src\java>javac Hello.java ...then you only have to solve your invocation of your classpath. Output: Code:
Alternatively, you can create another environment variable named CLASSPATH and assign its value to %JAVA_HOME%\lib;. ...however, this may be considered a security risk. MxB |
|
#4
|
|||
|
|||
Re: Java will not work on Vista, please help!Quote:
C:\Program Files\Java\jdk1.6.0_16\bin thats my path? |
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .NET, Java, or C++? | ironspider | Miscellaneous Programming Forum | 1 | 21-Apr-2009 00:22 |
| What is the equivalent in Java for a Function or Module in VB | pengwinz | Java Forum | 2 | 17-May-2007 20:02 |
| Random access files | Krazy_yA | C Programming Language | 6 | 07-May-2006 01:44 |
| help with coding for a Java newbie!!! | sammy78 | Java Forum | 0 | 04-Apr-2006 07:52 |
| Scalability in Java and C++ | agx | Miscellaneous Programming Forum | 7 | 04-Feb-2006 15:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The