Thread: [508 Pal] Error with run

Results 1 to 8 of 8
  1. #1 [508 Pal] Error with run 
    NxWebb
    Guest
    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: palidino76/rs2/Server
    Caused by: java.lang.ClassNotFoundException: palidino76.rs2.Server
            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)
    Press any key to continue . . .
    happens when i run the run cmd

    Code:
    @echo off
    cd ../bin
    "C:\Program Files\Java\jre1.6.0_07\bin\java.exe" palidino76/rs2/Server 43594
    pause
    what i have in it ^

    Help?
    Reply With Quote  
     

  2. #2  
    jabbah
    Guest
    What jre version do you have? I myself have 5.
    That might be whats wrong wit it.
    Reply With Quote  
     

  3. #3  
    NxWebb
    Guest
    No i do have jre.1.6.0_07 and jdk.1.6.0_07.
    Reply With Quote  
     

  4. #4  
    Registered Member Dr Satan's Avatar
    Join Date
    Mar 2008
    Posts
    286
    Thanks given
    0
    Thanks received
    1
    Rep Power
    16
    here you go my freind this should help you out
    i used to get similar problems but when i add this to the run.bat of a client i have no problems running it this is the code i add

    Code:
    -cp .
    and heres what i add to my server run.bat


    Code:
    -cp .;./Class;
    and heres what my server run.bat looks like to give you an idea how i use it

    Code:
    @echo off
    cd ../bin
    "C:\Program Files\Java\jre1.6.0_05\bin\java.exe" -cp .;./Class; ovrlords/Server 43594
    pause
    dont try and copy my run.bat it is just there to help you figure out how to fix it
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Sep 2008
    Posts
    1,801
    Thanks given
    4
    Thanks received
    50
    Rep Power
    636
    Code:
    @echo off
    cd ../bin
    java -Xmx512m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.08-ga-bin.jar palidino76/Server 43594
    pause
    try that
    Reply With Quote  
     

  6. #6  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,141
    Thanks given
    256
    Thanks received
    1,247
    Rep Power
    3636
    Quote Originally Posted by zach. View Post
    Code:
    @echo off
    cd ../bin
    java -Xmx512m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.08-ga-bin.jar palidino76/Server 43594
    pause
    try that
    Thats for SQL based servers lol?
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Sep 2008
    Posts
    1,801
    Thanks given
    4
    Thanks received
    50
    Rep Power
    636
    i hvae no fucking clue what it is
    i have the same java version and if i take out the
    .;./jython.jar;./MySql/mysql-connector-java-3.0.08-ga-bin.jar
    it cant find file
    Reply With Quote  
     

  8. #8  
    Registered Member Dr Satan's Avatar
    Join Date
    Mar 2008
    Posts
    286
    Thanks given
    0
    Thanks received
    1
    Rep Power
    16
    guys what i posted will work for him i am very familiar with that error and it took me some time to figure it out
    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
  •