Thread: Trouble starting server on centOS6 VPS

Results 1 to 2 of 2
  1. #1 Trouble starting server on centOS6 VPS 
    Registered Member
    Join Date
    Jul 2014
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    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!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2012
    Posts
    447
    Thanks given
    26
    Thanks received
    35
    Rep Power
    14
    Quote Originally Posted by Obfust View Post
    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!
    (unrecognized class file version)
    That right there is saying that your java is not right.
    like on a original PI i sometimes get unsupported java version or somethng like that. you just need the right one. good luck
    Project is finally released, Come try it out @ Optimize-OS.
    Spoiler for Optimize-OS:
    http://www.rune-server.ee/runescape-development/rs2-server/advertise/617031-optimize-os-spawn-pking-dont-let-your-enemy-escape-beginning.html
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 08-11-2010, 05:19 PM
  2. Hosting A Server On My VPS
    By HyreScape in forum Hosting
    Replies: 5
    Last Post: 05-15-2010, 02:31 PM
  3. start server on linux
    By Senqi in forum Help
    Replies: 9
    Last Post: 02-24-2010, 10:40 PM
  4. Hosting a server on a VPS
    By GwasDdos in forum Hosting
    Replies: 4
    Last Post: 12-09-2009, 11:08 AM
  5. Hosting a server on my VPS
    By Haaivs in forum Hosting
    Replies: 5
    Last Post: 10-03-2009, 12:49 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •