[Release] Basic JDK 6u1 batch files

Status
Not open for further replies.
Master Summoner
Joined
Mar 19, 2007
Messages
531
Reaction score
2
Just edit these into 2 already existing batch files. Remember you need to have JDK v6 Update 1 downloaded and installed. Otherwise change the jdk1.6.0_01 to what you have. Example, if you have JDK 5 make it 1.5.0_0

Compiler

Code:
@echo off
color 0a
title [COLOR=red]SERVER NAME HERE[/COLOR]
"C:/program files/java/jdk1.6.0_01/bin/javac" *.java
pause

run server

Code:
@echo off
color 0a
title [COLOR=red]SERVER NAME HERE[/COLOR]
"C:/program files/java/jdk1.6.0_01/bin/java" *.java
pause


For SERVER NAME HERE just put the name you named your server. Example: Examplescape
 
Last edited:
Re: [Resource Release] Basic JDK 6u1 batch files

What you I use instead of "YOUR SERVER NAME HERE" ?

The name of the server downloaded (Mine is Zamorak) Or the name I want (Like KostyScape) ?
 
Re: [Resource Release] Basic JDK 6u1 batch files

@kosty-lmao its not hard just put wat u want there -.-
@Jare-And thanks for releasing this, it was doing my bloody head in with some java. but i did manage to fix this b4 u released, but agen great for releasing :smile:
 
Re: [Resource Release] Basic JDK 6u1 batch files

@Joe : xD It was my first hour on RS private clienting

But, @TS, i think there is a bug ;)

Javac compiles *.java to .class

Why are you trying to run the .JAVA files ????
 
Re: [Resource Release] Basic JDK 6u1 batch files

Maybe i should release my batch files since there a bit better.
and dont use *.java for compiling use server.java since else its also going to compiler non-used .java files...
 
Re: [Resource Release] Basic JDK 6u1 batch files

compile
Code:
@echo off
"C:\Program Files\Java\jdk1.6.0_01\bin\javac" server.java
"C:\Program Files\Java\jdk1.6.0_01\bin\jar" cvf server.jar *.class
del *.class
"C:\Program Files\Java\jdk1.6.0_01\bin\jar" tvf server.jar
pause

run + mysql << make sure the mysql/mysql.jar is directed to your mysql library file.
What could be something like mysql-connector-java-5.0.5-bin.jar
so just replace mysql/mysql.jar with mysql-connector-java-5.0.5-bin.jar
Code:
@echo off
java -cp server.jar;mysql/mysql.jar server
pause

run normal
Code:
@echo off
java -cp server.jar server
pause

almost forgot i said i would post it :p,
My own is a bit diffrent since i use directory's like src/bin etc ;).
 
Re: [Resource Release] Basic JDK 6u1 batch files

i need help how do i edit a server please telll me and administrators are cool and we are lucky we have mods cause they are best they help us all of the time and i hope ppl dont put virus
 
Status
Not open for further replies.
Back