java - javac not working in CMD -


i'm having issue compiling java command prompt. @ first saying javac isn't recognised internal or external command , reading see need change path , thats did to...

variable name: path

variable value:%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%path%;c:\program files\java\jre7\bin;

i closed commpand prompt , attempted again same issue came up.

i tried echo %path% , entire path line echoed(entire line in terms of variable value)

i have tried "for %i in (javac.exe) @echo %~$path:i" , returns echo on.

i'm quite stumped , confused now. javafile in , named main.java trying compile whilst in javawork folder in cmd

c:\users\myname\documents\javawork

thanks,

you want path jdk, not jre, in system path. jre doesn't come compiler (javac).


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -