Thread: Exception in Thread.

Results 1 to 8 of 8
  1. #1 Exception in Thread. 
    Registered Member
    Join Date
    Dec 2009
    Posts
    250
    Thanks given
    30
    Thanks received
    4
    Rep Power
    1
    Well this is ANOTHER thread of a problem running on vps, just other error.

    Code:
     Exception in thread "main" java.lang.NoClassDefFoundError: server
    Caused by: java.lang.ClassNotFoundException: 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)
    Could not find the main class: server.  Program will exit.
    Hate the error.. how do i fix? :l
    Source; Soulsplit(PI)



    ps: this is on linux ubunty 10.04 vps. i know it's crap if u don't know alot of it, but i couldn't afford a windows xp one :L





    this is a copy of my otherr post in help section,there are only 2 people there, so i wanted to try it here...
    Because i need a stable source and i can only host delta unless i get this error fixed :l
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2007
    Posts
    994
    Thanks given
    25
    Thanks received
    47
    Rep Power
    604
    It cant find the server.class. whats the path that your using to start your server.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    250
    Thanks given
    30
    Thanks received
    4
    Rep Power
    1
    java -Xmx512M Server


    Any solutions?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2010
    Posts
    3,253
    Thanks given
    1,145
    Thanks received
    909
    Rep Power
    2081
    As stated before.
    It cant find the server class.

    Ethier compile it (maybe theres no class files).
    Or by the looks of it you've put "server" instead of "Server".
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2009
    Posts
    250
    Thanks given
    30
    Thanks received
    4
    Rep Power
    1
    There are class files, since it's pi base it's located in bin/server/Server

    last one is teh Server.java.
    Reply With Quote  
     

  6. #6  
    Community Veteran


    Join Date
    Jan 2008
    Posts
    2,659
    Thanks given
    494
    Thanks received
    627
    Rep Power
    980
    Code:
    java -cp bin server.Server
    Why would you want to host your server on Windows XP?
    ~iKilem
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2009
    Posts
    250
    Thanks given
    30
    Thanks received
    4
    Rep Power
    1
    someone told me to put like that o,o
    then give me a working one for linux:l
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jan 2008
    Posts
    1,778
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by jochem View Post
    someone told me to put like that o,o
    then give me a working one for linux:l
    There is no difference in running a server on windows 2008 or whatever u use and a linux. (difference in pressing a run batch)..

    The run file can't find the server file so therefor it can't start the 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

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