My question to all is if I did it right. Are there any glaring mistakes y'all can see?
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
That's not your PATH, that's your "current directory." You can change that with the cd command.Originally posted by Benjamin Chau:
Marc,
. . .
Now when I open up the Command Window and look at the default Path Variable . . here's the default Path Variable that I see in Command Prompt . . .
C:\Documents and Settings\my name>
Originally posted by Benjamin Chau:
...I click the button New under the System variables space and when a box pops up I type in Variable name and the Variable value, using JAVA as the name and the following directory for the value...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Campbell Ritchie:
You have set your PATH incorrectly. This is what you ought to do:Go to System Properties->advanced->environment variables->system variables->PATH->edit. Add the PATH to what is already there, separating it from the other entries with a ; Delete any old java PATH entries. The PATH entry will start with C:\ and end with bin No need for a user variable; you want that PATH for all users. Delete the entries you created earlier called JAVA Go to the CLASSPATH variable Make sure there is . or .; or ;. or ;.; somewhere in it. Beginning middle or end, doesn't matter. You do not usually need to change your CLASSPATH as long as the . appears somewhere. Close the command line and open it anew. And good luck with it [/qb]
Originally posted by Campbell Ritchie:
You don't create a JAVA environment variable and you don't use PATHEXT.
You use PATH . . . add
C:\Program Files\Java\jdk1.6.0_10\bin\ to it . . .
Originally posted by Campbell Ritchie:
...If there isn't a CLASSPATH variable at all, create one as a System variable and the new CLASSPATH should contain . That's all one . The . means "current directory." There is no need to add anything else to the CLASSPATH.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
This copy-and-paste shows the PATH on the Windows half of my PC. Note the spelling of the Java part of the PATH. It also shows how to set up the PATH temporarily for the lifetime of the window, and what happes if you write 01 instead of 10 in the PATH!Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Campbell>PATH
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files\Em
acs\\bin;C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\MySQL\MySQL Serv
er 5.0\bin;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\I
M;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsof
t Office\OFFICE11\Business Contact Manager\;C:\Program Files\Mozart\bin;C:\Progr
am Files\emacs-22.1-bin-i386\emacs-22.1\bin;C:\Program Files\Microsoft SQL Serve
r\90\Tools\binn\
C:\Documents and Settings\Campbell>SET PATH=C:\Program Files\Java\jdk1.6.
0_01\bin
C:\Documents and Settings\Campbell>javac -version
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Campbell>SET PATH=C:\Program Files\Java\jdk1.6.
0_10\bin
C:\Documents and Settings\Campbell>javac -version
javac 1.6.0_10-beta
C:\Documents and Settings\Campbell>
Originally posted by Campbell Ritchie:
What didn't work? Tell The Details in words of one syllable.
Which version of Java did you install? Which folder did you install it to? It's usually C:\Program Files\Java|jdk1.6.0_01\bin or similar. Post your PATH environment variable, both user and system, using ctrl-C ctrl-V so as to post it exactly. Post your CLASSPATH variable, user and system versions, similarly. Post a snippet from your command-line, again with copy and paste. There is more, but I shall have to reboot before I can tell you that.
Now, what am I doing wrong? aaarrgghh!
I really don't appreciate the attitude. This is the second time I've noticed it. I'm in no way an expert, like yourself. If you disagree or disapprove of my posts, please let me know politely, and I will act accordingly.
Originally posted by Henry Wong:
I guess you have chosen to take my response as attitude, and simply ignore the answer (hint) that was in the response.
[ November 12, 2008: Message edited by: Henry Wong ]
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|