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

I need some help compiling scripts for RSbot

Perf3ctskill

Forum Addict
Joined
Sep 1, 2010
Sythe Gold
0
Messages
362
Location
Sythe Forum
Okay, So...First here's 2 things that I REALLY REALLY need help on.

1. Someone leeched my script(:mad: :'(

2. I can't compile my script! :-(

I really need help with compiling(when I try to compile it says-
No .java script source files found.
Press any key to continue...)

Please a major coder help me...I've already ran into the error of Javac not found/recognized). I've been at this for 4 HOURS!

Please respond here, I will accept MSN only if I think you can help.

I have JRE and JDK. I've fixed my paths(I think). So....Please help me
 
If you're getting the no .java source file found error there could be two problems.
1. the compiler isn't made correctly
2. you haven't saved the script as NAME.java in the correct place

If you're getting the Javac is not recognized error, you need to set your PATH and CLASSPATH variables.
My PATH and CLASSPATH are:
Code:
C:\Program Files\Java\jdk1.6.0_21\bin;
and
Code:
CLASSPATH=C:\Program Files\Java\jdk1.6.0_21\bin;%CLASSPATH%;

Make sure in your variables you have your correct java update.

Hope this helps :)
 
If you're getting the no .java source file found error there could be two problems.
1. the compiler isn't made correctly
2. you haven't saved the script as NAME.java in the correct place

If you're getting the Javac is not recognized error, you need to set your PATH and CLASSPATH variables.
My PATH and CLASSPATH are:
Code:
C:\Program Files\Java\jdk1.6.0_21\bin;
and
Code:
CLASSPATH=C:\Program Files\Java\jdk1.6.0_21\bin;%CLASSPATH%;

Make sure in your variables you have your correct java update.

Hope this helps :)

Thank you helped a little bit >_<

When I put what you have in(we have the same java. etc.) It gives me a javac error. So I "edit" compiler and I change the cc=javac to cc=java. Then I re-run. I put in a little .java file(Pulled off powerbot). and then it gives me this error-


This is my compiler file(edited verison).

@ECHO OFF

TITLE RSBot Scripts

SET cc=java(used to be javac).
SET cflags=
SET scripts=Scripts
SET scriptspre=%scripts%\Precompiled
SET jarpathfile=Settings\path.txt

IF NOT EXIST "%jarpathfile%" (
ECHO Path file does not exist. Please run RSBot and try again.
GOTO end
) (used to be something here)

FOR /F "delims=" %%G IN (%jarpathfile%) DO SET jarpath=%%G


IF NOT EXIST %scripts%\*.java (
ECHO No .java script source files found.
GOTO end
)

ECHO Compiling scripts
ECHO. > "%scripts%\.class"
DEL /F /Q "%scripts%\*.class" > NUL
"%cc%" %cflags% -cp "%jarpath%" %scripts%\*.java

:end
PAUSE
EXIT

If you help me fix this I will vouch you! and I will give you my unrealesed Sorc garden!
 
Runescape Gamblingrunescape gambling
Back
Top