My direction to java is:
C:\Program Files(x86)\Java\jdk1.6.0_23\
C:\Program Files(x86)\Java\jre6\
This is my Compiler
Code:
@echo off
if exist "%Program Files(x86)%\Java" (call :compile "%Program Files(x86)%\Java\") else (goto error)
:compile
for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
if defined p (%p% -cp . *.java)
if defined p (goto end)
:error
echo You do not have Java installed. Please download it at the site that is about to load.
"%programfiles%\Internet Explorer\iexplore.exe" http://java.sun.com/javase/downloads/index.jsp
:end
echo Finished!
pause
exit
And when i Compile i GET THIS:
Code:
You do not have Java installed. Please download it at the site that is about to
load.
Whats wrong?