Thread: Could not find or load main class server.Server [CENTOS6]

Results 1 to 9 of 9
  1. #1 Could not find or load main class server.Server [CENTOS6] 
    Registered Member
    Join Date
    Jan 2013
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    [root@vps runescape]# java -cp deps/data/CompiledFileseps/* server.Server
    Error: Could not find or load main class server.Server

    Can someone help me with this problem?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2013
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Can someone please help me with this problem?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2012
    Posts
    35
    Thanks given
    4
    Thanks received
    19
    Rep Power
    47
    You need to add the current directory to the java class path.
    i.e)
    [root@vps runescape]# java -cp .:./deps/data/CompiledFiles:./deps/ server.Server

    Also, it's generally a bad idea to run services as root.
    Reply With Quote  
     

  4. #4  
    Ivo
    Ivo is offline
    Justah

    Ivo's Avatar
    Join Date
    Mar 2008
    Posts
    1,054
    Thanks given
    22
    Thanks received
    69
    Rep Power
    1619
    Not sure is it related, but centOS is really sensitive about caps and shit. Took me a while to rename folders and cfg related to even run server on it.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2013
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by SereneWoman View Post
    You need to add the current directory to the java class path.
    i.e)
    [root@vps runescape]# java -cp .:./deps/data/CompiledFiles:./deps/ server.Server

    Also, it's generally a bad idea to run services as root.
    Can you please help me with this?
    Look your PM.
    Would be nice
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2013
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Ivo View Post
    Not sure is it related, but centOS is really sensitive about caps and shit. Took me a while to rename folders and cfg related to even run server on it.
    What kind of OS you prefer then in Linux?
    Reply With Quote  
     

  7. #7  
    Ivo
    Ivo is offline
    Justah

    Ivo's Avatar
    Join Date
    Mar 2008
    Posts
    1,054
    Thanks given
    22
    Thanks received
    69
    Rep Power
    1619
    Quote Originally Posted by ThomLS View Post
    What kind of OS you prefer then in Linux?
    I used to run on Ubuntu for a while, but they all should be same sensitive. Theres tutorial how to run rsps on centOS somewhere, i used that tut to fix common errors.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jan 2013
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Ivo View Post
    I used to run on Ubuntu for a while, but they all should be same sensitive. Theres tutorial how to run rsps on centOS somewhere, i used that tut to fix common errors.

    Can you please link it to me? i can't find it
    Reply With Quote  
     

  9. #9  
    Ivo
    Ivo is offline
    Justah

    Ivo's Avatar
    Join Date
    Mar 2008
    Posts
    1,054
    Thanks given
    22
    Thanks received
    69
    Rep Power
    1619
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 01-14-2013, 07:06 PM
  2. Could not find main class: client
    By 1defk0 in forum Help
    Replies: 9
    Last Post: 12-26-2011, 08:50 PM
  3. Could not find the main class: EGUI.
    By Armaros in forum Help
    Replies: 2
    Last Post: 07-13-2010, 06:32 PM
  4. [PI] Cannot find main class Jframe
    By Xx_forgotten_Xx in forum Help
    Replies: 8
    Last Post: 06-30-2010, 03:06 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
  •