PDA

View Full Version : Javac error


partless
10-12-2009, 02:26 AM
Ok well I am using dev 7 source, and whenever I try to compile it it says javac is not recognized.

How do I fix this?

Bedrock
10-12-2009, 04:22 AM
download java. or that might jsut be what it say's not sure

Leet
10-14-2009, 04:29 PM
Noobs always get this error lol. All you have to do is set your enviromental variables. If you wanna know how go search it on mopar, rune-server, runelocus, or silab.

Zach
10-14-2009, 05:40 PM
@echo off
if exist "%programfiles%\Java" (call :compile "%programfiles%\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

Put that in your compiler.