So I downloaded the matrix source, and this is my first time setting up an RSPS, but I didn't expect it to be this hard :\
I installed the latest JDK version onto my VPS, and put all the server files into the JDK directory. Now, the matrix compiler is originally like this:
Code:
@echo off
@title Ozank 718 Compiler Server
@echo Ozank 718 Compiler
"C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe" -d bin -cp data/libs/*; -sourcepath src src/com/rs/game/player/Player.java
@echo Ozank 718 Compiler Part 1
"C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe" -d bin -cp data/libs/*; -sourcepath src src/com/rs/game/player/Equipment.java
@echo Ozank 718 Compiler Part 2
"C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe" -d bin -cp data/libs/*; -sourcepath src src/com/rs/Launcher.java
@echo Ozank 718 Compiler Part 3
"C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe" -d bin -cp data/libs/*; -sourcepath src src/com/rs/game/player/dialogues/*.java
@echo Ozank 718 Compiler Part 4
"C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe" -d bin -cp data/libs/*; -sourcepath src src/com/rs/*.java
@echo Ozank 718 Compiler Part 5
"C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe" -d bin -cp data/libs/*; -sourcepath src src/com/rs/game/player/content/*.java
@echo Ozank 718 Compiler Part 6
"C:\Program Files (x86)\Java\jdk1.8.0_05\bin\javac.exe" -d bin -cp data/libs/*; -sourcepath src src/com/rs/net/decoders/handlers/*.java
@echo Done!
pause
However, since thats only windows compatible, what I did was login to my server via SSH, go into the JDK directory where all the server files were, and ran these commands from the command line:
Code:
javac -d bin -classpath data/libs/*: -sourcepath src src/com/rs/game/player/Player.java
javac -d bin -classpath data/libs/*: -sourcepath src src/com/rs/game/player/Equipment.java
javac -d bin -classpath data/libs/*: -sourcepath src src/com/rs/Launcher.java
javac -d bin -classpath data/libs/*: -sourcepath src src/com/rs/game/player/dialogues/*.java
javac -d bin -classpath data/libs/*: -sourcepath src src/com/rs/*.java
javac -d bin -classpath data/libs/*: -sourcepath src src/com/rs/game/player/content/*.java
javac -d bin -classpath data/libs/*: -sourcepath src src/com/rs/net/decoders/handlers/*.java
I didn't get any errors with each command, so I assumed it compiled properly. However trying to start my server with (Which came in the run.bat file with the matrix source):
Code:
java -XX:-OmitStackTraceInFastThrow -server -Xms512m -Xmx512m -classpath bin:data/libs/netty-3.5.2.Final.jar:data/libs/FileStore.jar com.rs.Launcher false false true
I get the following error:
Code:
Exception in thread "main" java.lang.ClassFormatError: com.rs.Launcher (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.10)
at java.lang.ClassLoader.defineClass(libgcj.so.10)
at java.security.SecureClassLoader.defineClass(libgcj.so.10)
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at gnu.java.lang.MainThread.run(libgcj.so.10)
I've spent the better half of a day trying to figure this out and can't get it to work, ANY help would be very appreciated!