• Log in or sign up for an account here: https://www.sythe.org/login

Need Help With Compiler

Lakai Kid

Forum Addict
Banned
Joined
May 8, 2007
Sythe Gold
0
Messages
320
Location
720
Need Help With Compiler
So I "Think" I Downloaded JDK 3.2...And When I Start Up My Source And Click On Complier It Says I Need JDk(Which I Have..) Any Help I Would Appericate =)
 
Need Help With Compiler
First Check if you have jdk Installed. it should be under "C:\Program Files\Java" if you dont, install it. in that folder, there should be a folder called somthing like this JDK1.6.0_03.

now chances are that your compiler is looking in the wrong folder in order to find your java. in order to fix this, right click on compile.bat and click on EDIT.
now scroll down until you find somthing like this:
set /p c=Option:
if %c%==c goto c
if %c%==C goto c
if %c%==r goto r
if %c%==R goto r

in this case c is the compile function so find in your document ":C" (no qoutes)
it should look like this:
:C
set pro=%pr%jdk1.5.0
set pro2=%pr%jdk1.6.0_03 <----change this line so that its the same name as your JDK1 folder. (e.g mine is JDK1.6.0_03)

- Save the file and run it and it should work:)
 
Need Help With Compiler
ok right click your compiler then edit
then add this
Code:
@echo off
title Server Compiler
"C:\Program Files\Java\jdk1.6.0_03\bin\javac.exe" -cp . *.java
pause
i dont have my variables set and it works with just jdk@!|:)
 
Need Help With Compiler
lol, ye you could always do that :D it is easier but that was how i done my one :)
 
Runescape Gamblingrunescape gambling
Back
Top