So on my server running Windows Server 2008 x64 R2 I installed the Java JDK 7 Update 5.
I added “C:\Program Files\Java\jdk1.7.0_05\bin” to the System “Path” variable.
Now in console, certain Java executables like java.exe work, but others like javac.exe only work whenever I’m actually in that “bin” directory.
Does anyone have a clue what I did wrong and how I can fix this?
EDIT: Whenever I enter ‘javac’ it returns:
'javac' is not recognized as an internal or external command,
operable program or batch file.
When I type ‘PATH’, I get:
PATH=C:\PROGRA~2\PARALL~1\Plesk\ADDITI~1\Perl\site\bin;C:\PROGRA~2\PARALL~1\Ples
k\ADDITI~1\Perl\bin;C:\Program Files (x86)\Parallels\Plesk\Mail Servers\Mail Ena
ble\BIN;C:\Program Files (x86)\Parallels\Plesk\Additional\Python\Scripts;C:\Prog
ram Files (x86)\Parallels\Plesk\Additional\Python\;C:\zpanel\bin\apache\bin;C:\z
panel\bin\mysql\bin;C:\zpanel\bin\php;C:\zpanel\bin\wget;C:\zpanel\bin\bind\bin;
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind
owsPowerShell\v1.0\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn";C:\Progr
am Files\MySQL\MySQL Server 5.5\bin;C:\Program Files (x86)\Parallels\Plesk\Mail
Servers\Mail Enable\BIN64;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86
)\Git\cmd;C:\Program Files\SlikSvn\bin;C:\Program Files\Java\jdk1.7.0_05\bin;
create also an environment variable JAVA_HOME with path to java