Thread: Easy Rep!

Results 1 to 6 of 6
  1. #1 Easy Rep! 
    Banned
    Join Date
    Jul 2009
    Posts
    327
    Thanks given
    6
    Thanks received
    11
    Rep Power
    0
    Dear Rune-Sever,

    I have a problem with running the BattleScape source on a VPS. When i click 'run.bat' i get this:

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: Server
    Caused by: java.lang.ClassNotFoundException: Server
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: Server.  Program will exit.
    Press any key to continue . . .
    The strange thing is, i have compiled all the files. I have also tried running the exact same copy on my home PC and it runs fine. So it clearly has something to do with the VPS, what could this be?

    Easy rep available :coolface:

    EDIT: My run.bat....

    @echo off
    @title BattleScape
    java -Xmx512m Server
    pause
    exit
    EDIT 2: My server is packaged like delta, all in the root folder. All classes thrown into one folder along with run.bat and compiler. Here is screenie:

    Reply With Quote  
     

  2. #2  
    Registered Member
    Linux's Avatar
    Join Date
    Feb 2008
    Age
    29
    Posts
    597
    Thanks given
    104
    Thanks received
    103
    Rep Power
    1451
    The class your trying to run wasn't found.
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Jul 2009
    Posts
    327
    Thanks given
    6
    Thanks received
    11
    Rep Power
    0
    Quote Originally Posted by Korsakoff View Post
    The class your trying to run wasn't found.
    Yeah, thats obvious, you clearly didnt read my question. The Server CLASS is in the same folder AND i've tried the EXACT same source on my home PC and it runs fine.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Linux's Avatar
    Join Date
    Feb 2008
    Age
    29
    Posts
    597
    Thanks given
    104
    Thanks received
    103
    Rep Power
    1451
    Quote Originally Posted by Zonchord View Post
    Yeah, thats obvious, you clearly didnt read my question. The Server CLASS is in the same folder AND i've tried the EXACT same source on my home PC and it runs fine.
    File path changes on every computer.
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Jul 2009
    Posts
    327
    Thanks given
    6
    Thanks received
    11
    Rep Power
    0
    Quote Originally Posted by Korsakoff View Post
    File path changes on every computer.
    Ok... so how do i fix?
    Reply With Quote  
     

  6. #6  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    31
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    how is your server packaged????

    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

Tags for this Thread

View Tag Cloud

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