Thread: Starting the server from Linux

Results 1 to 3 of 3
  1. #1 Starting the server from Linux 
    Registered Member
    Join Date
    Jul 2012
    Posts
    29
    Thanks given
    2
    Thanks received
    5
    Rep Power
    11
    I manged to get revival-rs source working at windows but when I try the same launch command on ubuntu, it fails to launch =/

    Windows: Confirmed and works

    Code:
    @echo Off
    title Server
    java -Xmx1024m -cp bin;libs/commons-compress-1.0.jar;libs/commons-io-2.4.jar;libs/javac++.jar;libs/jdom-1.1.2.jar;libs/jdom-2.0.2.jar;libs/jruby.jar;libs/mysql-connector-java-5.1.20-bin.jar;libs/xpp3_min-1.1.4c.jar;libs/xpp3-1.1.4c.jar;libs/xstream-1.4.1.jar; com.rs2.Server
    pause
    Ubuntu server 14.04: Fails to work for some reason..

    Code:
    java -classpath bin;libs/commons-compress-1.0.jar;libs/commons-io-2.4.jar;libs/javac++.jar;libs/jdom-1.1.2.jar;libs/jdom-2.0.2.jar;libs/jruby.jar;libs/mysql-connector-java-5.1.20-bin.jar;libs/xpp3_min-1.1.4c.jar;libs/xpp3-1.1.4c.jar;libs/xstream-1.4.1.jar; com.rs2.Server
    Error:

    Code:
    runescape@vps:~/Server$ java -classpath bin;libs/commons-compress-1.0.jar;libs/commons-io-2.4.jar;libs/javac++.jar;libs/jdom-1.1.2.jar;libs/jdom-2.0.2.jar;libs/jruby.jar;libs/mysql-connector-java-5.1.20-bin.jar;libs/xpp3_min-1.1.4c.jar;libs/xpp3-1.1.4c.jar;libs/xstream-1.4.1.jar; com.rs2.Server
    Usage: java [-options] class [args...]
               (to execute a class)
       or  java [-options] -jar jarfile [args...]
               (to execute a jar file)
    where options include:
        -d32          use a 32-bit data model if available
        -d64          use a 64-bit data model if available
        -server       to select the "server" VM
                      The default VM is server.
    
        -cp <class search path of directories and zip/jar files>
        -classpath <class search path of directories and zip/jar files>
                      A : separated list of directories, JAR archives,
                      and ZIP archives to search for class files.
        -D<name>=<value>
                      set a system property
        -verbose:[class|gc|jni]
                      enable verbose output
        -version      print product version and exit
        -version:<value>
                      Warning: this feature is deprecated and will be removed
                      in a future release.
                      require the specified version to run
        -showversion  print product version and continue
        -jre-restrict-search | -no-jre-restrict-search
                      Warning: this feature is deprecated and will be removed
                      in a future release.
                      include/exclude user private JREs in the version search
        -? -help      print this help message
        -X            print help on non-standard options
        -ea[:<packagename>...|:<classname>]
        -enableassertions[:<packagename>...|:<classname>]
                      enable assertions with specified granularity
        -da[:<packagename>...|:<classname>]
        -disableassertions[:<packagename>...|:<classname>]
                      disable assertions with specified granularity
        -esa | -enablesystemassertions
                      enable system assertions
        -dsa | -disablesystemassertions
                      disable system assertions
        -agentlib:<libname>[=<options>]
                      load native agent library <libname>, e.g. -agentlib:hprof
                      see also, -agentlib:jdwp=help and -agentlib:hprof=help
        -agentpath:<pathname>[=<options>]
                      load native agent library by full pathname
        -javaagent:<jarpath>[=<options>]
                      load Java programming language agent, see java.lang.instrument
        -splash:<imagepath>
                      show splash screen with specified image
    See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
    libs/commons-compress-1.0.jar: line 1: $'PK\003\004': command not found
    libs/commons-compress-1.0.jar: line 2: ▒:: No such file or directory
    libs/commons-compress-1.0.jar: line 3: syntax error near unexpected token `)'
    libs/commons-compress-1.0.jar: line 3: <▒:zl▒lMETA-INF/MANIFEST.MF▒VM▒▒0▒G▒▒▒J$@▒m▒▒▒V▒BWU/▒▒1▒n▒#▒Y▒▒▒▒$!▒▒z!v▒▒ͼɌ▒1▒lF▒v▒▒TLp▒ݖmu$Y▒W*▒C▒▒▒l▒')▒4p▒▒u[▒▒w▒]'▒B▒zbŚ▒p⾷▒n▒B▒▒m▒]▒
    ▒▒=ҶK@.)▒X▒Cg▒tH}ô\%▒▒*ut▒▒@HMu"L▒13▒�▒▒"▒Ar▒▒>r▒▒Yr*▒▒ID       ▒1r&▒▒cu▒+▒:▒▒▒ԙ▒X▒
    ▒▒M▒4▒rNu▒▒rx?b▒r▒.▒▒▒fs▒Zer]P▒
    S▒j▒▒▒ä▒xn▒▒k▒▒BH▒<b▒▒4▒'▒▒▒▒3▒▒,▒▒▒4▒/W▒UC@▒▒0X!a▒S▒$g▒y ▒κ-▒▒▒&▒_▒J▒▒▒qb
                                                                             ▒Ƀ▒▒(▒"▒`<▒}▒X▒
                                                                                            ▒[▒x▒R▒ѱfa!X▒a8#▒▒X▒▒▒▒▒xއO▒▒▒ͭm▒▒▒▒Hk~▒▒▒jj▒)I▒y[▒
                       )▒▒~▒zxδC=▒YqU▒C=▒▒sYe▒▒.L▒]▒▒▒]▒▒wv▒▒*"Y▒CqV ▒F▒_p▒9H/▒▒-L▒ͨm▒7▒▒nj~~a▒.,<▒▒▒v▒t*m▒▒▒▒▒nl▒▒▒Vns▒g▒v▒▒▒z▒-;>▒,▒L▒4Ȋ▒▒▒T▒▒G▒▒[0▒▒돶e[▒PK'
    libs/commons-io-2.4.jar: line 1: $'PK\003\004': command not found
    libs/commons-io-2.4.jar: line 2: $'v\222\314@': command not found
    libs/commons-io-2.4.jar: line 21: syntax error near unexpected token `)'
    libs/commons-io-2.4.jar: line 21: `▒Ғ▒^w▒ ▒▒W▒!▒▒
    N▒
      g▒▒1^▒yKn▒K(▒"▒N▒▒▒
    ▒F/L*▒vTb6▒▒▒▒l4]▒▒▒hL▒F▒▒▒▒`▒l▒8m▒C▒▒▒▒▒▒▒u▒▒▒A▒*▒O▒▒▒▒6Jys▒▒C%▒▒݅Z▒ب▒&▒@▒▒▒9▒▒▒^▒"▒ID_▒▒▒▒$ +yr.,▒▒趒3▒a▒▒O▒▒▒eq▒▒e▒M▒5|▒Ȓ;▒▒▒=▒<])_▒pڔ▒▒▒D▒▒▒írU$▒E▒+'
    -bash: libs/javac++.jar: cannot execute binary file: Exec format error
    libs/jdom-1.1.2.jar: line 1: $'PK\003\004': command not found
    libs/jdom-1.1.2.jar: line 2: $'\246\262I?': command not found
    libs/jdom-1.1.2.jar: line 3: $'!\371': command not found
    libs/jdom-1.1.2.jar: line 4: syntax error near unexpected token `)'
    libs/jdom-1.1.2.jar: line 4: `▒ߛ▒L▒N▒▒▒▒{޼▒%%▒▒▒▒Wn▒P2# ▒1▒▒▒%׬▒s▒n.▒▒)▒hm8^G▒▒▒▒▒4▒>▒▒l{IJQexgI!+z▒FϬ▒Q▒s▒U▒n▒▒V▒J4▒b▒vZ▒?=lJ▒n▒▒▒N▒▒▒L▒▒dd▒▒▒▒N▒▒▒▒▒]D▒"?)Oh▒G<▒0R▒0▒U
    ;▒,▒z▒&▒▒H▒q▒▒▒f\ˬh>BAL▒▒pmD▒gM=Dt\▒▒&&m▒▒▒ϳ;R>'
    libs/jdom-1.1.2.jar: line 3: $'u\302\206x\223ئ.\322': command not found
    libs/jdom-2.0.2.jar: line 1: $'PK\003\004': command not found
    libs/jdom-2.0.2.jar: line 2: $'\246\262I?': command not found
    libs/jdom-2.0.2.jar: line 3: $'!\371': command not found
    libs/jdom-2.0.2.jar: line 4: syntax error near unexpected token `)'
    libs/jdom-2.0.2.jar: line 4: `▒ߛ▒L▒N▒▒▒▒{޼▒%%▒▒▒▒Wn▒P2# ▒1▒▒▒%׬▒s▒n.▒▒)▒hm8^G▒▒▒▒▒4▒>▒▒l{IJQexgI!+z▒FϬ▒Q▒s▒U▒n▒▒V▒J4▒b▒vZ▒?=lJ▒n▒▒▒N▒▒▒L▒▒dd▒▒▒▒N▒▒▒▒▒]D▒"?)Oh▒G<▒0R▒0▒U
    ;▒,▒z▒&▒▒H▒q▒▒▒f\ˬh>BAL▒▒pmD▒gM=Dt\▒▒&&m▒▒▒ϳ;R>'
    libs/jdom-2.0.2.jar: line 3: $'u\302\206x\223ئ.\322': command not found
    -bash: libs/jruby.jar: cannot execute binary file: Exec format error
    libs/mysql-connector-java-5.1.20-bin.jar: line 1: $'PK\003\004': command not found
    libs/mysql-connector-java-5.1.20-bin.jar: line 2: $'\b\263\246\241@': command not found
    libs/mysql-connector-java-5.1.20-bin.jar: line 3▒▒▒@▒▒META-INF/MANIFEST.MF▒UKs▒0▒{▒▒Aå͌Q▒▒̴d▒▒dJ▒▒^rYQ=IP▒▒]: No such file or directory
    libs/mysql-connector-java-5.1.20-bin.jar: command substitution: line 14: unexpected EOF while looking for matching `''
    libs/mysql-connector-java-5.1.20-bin.jar: command substitution: line 26: syntax error: unexpected end of file
    ▒▒▒G▒▒x▒{8K+▒'▒5▒8^(4▒▒h▒▒▒I▒▒▒Wq4XpႽ+L▒▒▒\0▒rm▒XY ▒O▒u▒▒▒X▒U▒pG▒&y(    ▒12P~▒Y
    1▒˵}x▒Oh}]▒ڸ▒B▒▒▒▒▒[n▒▒;▒(;w
                                ▒l▒▒shY!▒▒dN▒d▒▒\U氵b{ZI▒▒!▒B2KV▒libs/mysql-connector-java-5.1.20-bin.jarϞ▒▒dX▒ ❡▒▒
    ▒ۯ▒▒^▒m(<;▒▒▒▒▒▒S.▒i
                        xZbmP,?▒'▒ȃ▒lEY▒▒=▒.▒▒u@߼▒▒▒▒s▒▒l▒4]_▒y▒▒)
            wA▒▒▒b▒▒9▒L▒=▒zQ▒▒▒h▒▒-Y▒▒i▒N
                                         ▒▒ԍ▒Qr#&q▒▒▒▒y▒Q@▒▒
    {6▒▒▒▒)▒>D▒[V▒=b▒w#     Bsl▒▒ʰ▒b▒▒▒: No such file or directory
    libs/mysql-connector-java-5.1.20-bin.jar: line 14: S▒▒▒▒▒96▒|Ї▒▒i▒▒▒Y;X▒n▒5▒▒▒:n▒▒U%V▒▒✛?PK                          ▒▒▒@▒j.▒GF)com/mysql/jdbc/AuthenticationPlugin.class▒Q▒N▒@=ë▒/T▒.,.l\cL▒▒Q▒▒
                                                                              wC▒2▒y▒5~▒e▒V▒I▒▒▒▒▒▒9▒▒▒▒▒▒s▒▒;▒;h4▒▒2▒I▒▒▒▒D▒▒: No such file or directory
    libs/mysql-connector-java-5.1.20-bin.jar: line 20: syntax error near unexpected token `)'
    ▒1▒s/mysql-connector-java-5.1.20-bin.jar: line 20: `▒▒dY_B~▒▒▒▒K>f▒,J▒▒J▒       ▒▒T▒▒h▒▒▒▒▒▒$Iif▒H3Z▒a▒
    ▒▒xS    ▒L2▒▒▒m▒▒w▒▒;▒yZ靖▒▒$*l▒HTJ4▒
    ▒tH▒▒Y-5) ▒*м4▒g▒▒*`K▒▒▒ó▒&▒▒▒▒!▒B▒▒A▒3ɭk▒Ș▒ðI▒▒X▒\ӷ▒w▒'▒ Ryi▒▒]▒,%▒▒ՀY▒
    libs/xpp3_min-1.1.4c.jar: line 1: $'PK\003\004': command not found
    libs/xpp3_min-1.1.4c.jar: line 2: $'\022\245j5': command not found
    libs/xpp3_min-1.1.4c.jar: line 3: ▒▒4y▒x▒PK: No such file or directory
    K-*▒▒ϳR0▒3▒▒r▒Cq,HL▒HU▒%▒▒x▒▒▒RKRSt▒*A▒M▒META-INF/MANIFEST.MF▒M▒▒LK-.▒
    ▒u▒
    ▒4▒K▒: No such file or directory
    libs/xpp3_min-1.1.4c.jar: line 4: ▒j5META-INF/services/PK: No such file or directory
    libs/xpp3_min-1.1.4c.jar: line 5: syntax error near unexpected token `)'
    libs/xpp3_min-1.1.4c.jar: line 5: ▒j5QQ▒Q.C5META-INF/services/org.xmlpull.v1.XmlPullParserFactory▒/J׫▒▒)(▒▒▒˭(0▒H,*N-▒▒G▒▒'
    libs/xpp3-1.1.4c.jar: line 1: $'PK\003\004': command not found
    libs/xpp3-1.1.4c.jar: line 2: $'\027\245j5': command not found
    libs/xpp3-1.1.4c.jar: line 3: ▒▒4y▒x▒PK: No such file or directory
    K-*▒▒ϳR0▒3▒▒r▒Cq,HL▒HU▒%▒▒x▒▒▒RKRSt▒*A▒M▒-INF/MANIFEST.MF▒M▒▒LK-.▒
    ▒u▒
    ▒4▒K▒: No such file or directory
    libs/xpp3-1.1.4c.jar: line 4: ▒j5META-INF/services/PK: No such file or directory
    libs/xpp3-1.1.4c.jar: line 15: syntax error near unexpected token `$'\230eh兒se\322''
    libs/xpp3-1.1.4c.jar: line 15: `▒"8'▒_▒▒u▒▒!▒y!qCD▒▒8fU▒▒▒(▒eh兒se▒)▒6▒:F▒y#e▒l▒▒b▒l▒▒+%#▒▒Ld▒V1kX▒F▒▒▒|▒\▒͐i▒▒▒▒▒▒!▒▒2▒▒▒gh1m>Z-L▒▒ic▒▒"▒▒;k▒Mq▒!'oV▒$▒Bj▒`▒▒I▒N▒Җ▒▒▒▒?▒▒e▒▒▒>˝▒5lH▒▒▒D▒#▒▒D▒8▒q▒+
    ▒▒▒a▒E/r▒.U'▒9▒`qznm!▒Keް▒|l▒!▒▒▒▒L▒Q▒BG▒F%▒▒#▒▒#▒Z▒F▒
    libs/xstream-1.4.1.jar: line 1: $'PK\003\004': command not found
    libs/xstream-1.4.1.jar: line 2: $'\242\262c?': command not found
    libs/xstream-1.4.1.jar: line 3: $'\023\313R\363x\271\234J3sJ\300\342Y\371\251\031y\231\020\221\024]\257\224l\220\361fz\006\361F\226\274\274PK\003\004': command not found
    K-*▒▒ϳR0▒3▒▒r,J▒▒,K-▒V▒+▒▒▒RKRSt▒*▒▒▒▒bg}META-INF/MANIFEST.MF▒M▒▒LK-.▒
                                       ▒3R: No such file or directory
    libs/xstream-1.4.1.jar: line 4: ▒▒c?com/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 5: ▒▒c?com/thoughtworks/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 6: ▒▒c?com/thoughtworks/xstream/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 7: ▒▒c?/thoughtworks/xstream/converters/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 8: ▒▒c****com/thoughtworks/xstream/converters/basic/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 9: ▒▒c?/com/thoughtworks/xstream/converters/reflection/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 10: ▒▒c****com/thoughtworks/xstream/converters/enums/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 11: ▒▒c?-com/thoughtworks/xstream/converters/extended/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 12: ▒▒c?-com/thoughtworks/xstream/converters/javabean/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 13: ▒▒c?0com/thoughtworks/xstream/converters/collections/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 14: ▒▒c?com/thoughtworks/xstream/io/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 15: ▒▒c?#com/thoughtworks/xstream/io/binary/PK: No such file or directory
    libs/xstream-1.4.1.jar: line 16: $'\230\262c?': command not found
    libs/xstream-1.4.1.jar: line 28: syntax error near unexpected token `)'
    libs/xstream-1.4.1.jar: line 28: `oBE▒▒x(z▒▒▒m▒65▒▒f▒▒#▒zQ▒▒U▒G▒▒▒▒h^▒▒L▒{▒▒▒▒▒▒.▒s▒▒▒%6Vl▒2▒~▒B▒Zk▒▒▒▒▒B▒▒ɠ▒J}&܀;▒▒▒D▒:]s▒▒U▒▒FFK▒w<^Km▒▒WD▒▒▒▒Ex▒凝@▒E0▒▒ON▒▒▒D8▒    ▒j▒'▒▒▒▒▒4E▒▒9!kT▒h▒6▒2Nݞ▒L▒▒5▒oZ▒▒x▒l~▒R▒▒XÑ▒6V▒R▒▒#?▒C巩vbu▒y▒F8▒m▒▒▒▒▒▒▒▒n▒▒▒Y▒▒|C1▒▒\9▒▒8▒▒z▒$▒I▒▒▒▒▒▒▒)▒`▒1▒5▒▒#▒C▒▒▒▒+l▒▒▒▒▒▒7▒▒▒laH▒%▒,J ▒▒C9▒▒Ot
                                                                                     PK'
    PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYcom.rs2.Server: command not found
    runescape@vps:~/Server$ PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
    here's my JDK info

    runescape@vps:~/Server$ java -version
    java version "1.8.0_91"
    Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
    Reply With Quote  
     

  2. #2  
    Registered Member mintal's Avatar
    Join Date
    Nov 2011
    Posts
    85
    Thanks given
    1
    Thanks received
    8
    Rep Power
    16
    in linux you need to use : to split libraries instead of ;

    Here's an example:
    Code:
    java -cp bin:deps/poi.jar:deps/mysql.jar:deps/netty.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar:deps/Motivote-server.jar server.Server
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Jul 2012
    Posts
    29
    Thanks given
    2
    Thanks received
    5
    Rep Power
    11
    Quote Originally Posted by mintal View Post
    in linux you need to use : to split libraries instead of ;

    Here's an example:
    Code:
    java -cp bin:deps/poi.jar:deps/mysql.jar:deps/netty.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar:deps/Motivote-server.jar server.Server
    I attempted that, and majority of the errors are gone, so this is definitely the right way.

    However, I still get:

    Error: Could not find or load main class server.Server

    I wonder if it needs to know where server.java is? And if so, I gotta figure out way specifying that.

    Thanks for the answer though xD Definitely helped me towards the right direction.

    Quote Originally Posted by s ranged View Post
    I attempted that, and majority of the errors are gone, so this is definitely the right way.

    However, I still get:

    Error: Could not find or load main class server.Server

    I wonder if it needs to know where server.java is? And if so, I gotta figure out way specifying that.

    Thanks for the answer though xD Definitely helped me towards the right direction.
    And it's working, the correct code is:

    java -cp bin:libs/commons-compress-1.0.jar:libs/commons-io-2.4.jar:libs/javac++.jar:libs/jdom-1.1.2.jar:libs/jdom-2.0.2.jar:libs/jruby.jar:libs/mysql-connector-java-5.1.20-bin.jar:libs/xpp3_min-1.1.4c.jar:libs/xpp3-1.1.4c.jar:libs/xstream-1.4.1.jar: com.rs2.Server
    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. Can't start the server.
    By awa006 in forum Help
    Replies: 1
    Last Post: 07-07-2011, 03:43 PM
  2. RS2HD Starting the Server
    By iMac in forum Help
    Replies: 4
    Last Post: 09-21-2010, 01:57 AM
  3. Starting a server from scratch?
    By ike izzle in forum Projects
    Replies: 14
    Last Post: 08-02-2009, 03:55 PM
  4. Error whenever I start the server.
    By Armo in forum Help
    Replies: 1
    Last Post: 05-18-2009, 01:28 AM
  5. Going to start a server from scratch.
    By xStanyer in forum RS2 Server
    Replies: 5
    Last Post: 10-30-2008, 09:14 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
  •