javac not working on windows command line
^ I tried the suggestions on this post, and it was WRONGLY useful, but not completely.
I opened my command line and I entered "javac" after entering the path into my environment variables, and this did not work, after which I looked through it and found this stream.
I knew that I had already closed and reopened my cmd and it didnβt work, so I skipped this bit and I saw the part telling me to make sure javac.exe exists and I checked it with the command " dir "in cmd. Afterwords, while in the folder βC: \ Program Files \ Java \ jdk1.7.0_25 \ bin" on the command line, I entered the following tip, which was
for %i in (javac.exe) do @echo %~$PATH:i
After entering this in my command prompt, I received the message "ECHO is enabled." Seeing this, I again typed "javac", and this time it worked. So I decided to check this by backing up from the directory and going to the folder in which the .java file was saved and run, but he again told me that
'javac' is not recognized as an internal or external command, operable program or batch file.
It was disappointing. I think this will only work if I INSIDE the bin file on the command line, which is annoying because I am not the administrator of this computer, and it will be very unpleasant to always get administrator permission (from my parents) for encoding. They will also never give me a password. Can someone help me? Thank you in advance! And sorry for the huge wall of text ...
EDIT: Someone asked what the output would be "echo% path%". It:
C:\Windows\system32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
^ Is this supposed to be said?
EDIT 2: @ brano88 ... I guess I did? I right-click on the computer, go to properties, go to advanced system settings, click environment variables and go to the top and click "Create ...". There I entered the variable name as the path and the variable value as the bin location. This is not true? In doing so, I followed the YouTube tutorial step by step.
This one: http://www.youtube.com/watch?v=Hl-zzrqQoSE