Thread: Run.bat

Results 1 to 3 of 3
  1. #1 Run.bat 
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    29
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    Code:
    @echo off
    title Game Server
    java -Xmx1024m -classpath bin com.rs.worldserver.Server release nogui
    pause
    Where should I place the below in my Shard's run.bat? The Jar itself is in the same folder as run.bat
    Code:
    .;mysql-connector.jar
    Reply With Quote  
     

  2. #2  
    Donator

    Ecstasy's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    5,031
    Thanks given
    324
    Thanks received
    596
    Rep Power
    843
    Code:
    @echo off
    title Game Server
    java -Xmx1024m -classpath mysql-connector.jar; bin com.rs.worldserver.Server release nogui
    pause
    I'm pretty sure.

    Reply With Quote  
     

  3. #3  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    29
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    That is what I had tried and got this:
    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: bin
    Caused by: java.lang.ClassNotFoundException: bin
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: bin.  Program will exit.
    Press any key to continue . . .
    It winds up thinking the main class is bin, not bin com.rs. blah blah blah.

    EDIT: It's.
    Code:
    @echo off
    title Shard Revolutions: Run
    java -Xmx1024m -cp .;bin.;mysql-connector.jar com.rs.worldserver.Server release nogui
    pause
    exit
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •