Thread: [PI] Ubuntu 10.10 VPS

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI] Ubuntu 10.10 VPS 
    Registered Member
    Join Date
    Jul 2011
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I recently got a large donation and so I bought a VPS to run my PI server.
    I've followed the tutorial here: Host a Server on Linux (Ubuntu)

    I've converted my run.bat into run.sh, and it looks like this:
    Code:
    java -Xmx200m -cp bin:deps/poi.jar:deps/mysql.jar:deps/mina.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar server.Server
    However, I always get this error:
    Code:
    root@vps:~/Dropbox/IX-RSPS# sh run.sh
    Exception in thread "main" java.lang.NoClassDefFoundError: server/Server
    Caused by: java.lang.ClassNotFoundException: server.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:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    .  Program will exit.in class: server.Server
    I CHMOD'd the entire directory (with -R for recursive) to 777 just to be sure, but it's still not working.

    I'd really appreciate any help I can get. I don't want my money to be wasted!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Whired's Avatar
    Join Date
    Aug 2007
    Posts
    2,126
    Thanks given
    238
    Thanks received
    500
    Rep Power
    822
    Does "/Dropbox/IX-RSPS" contain the "bin" and "deps" folder?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2011
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Yeah, I copied over everything exactly as it was from my Windows machine and changed the .sh files.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Whired's Avatar
    Join Date
    Aug 2007
    Posts
    2,126
    Thanks given
    238
    Thanks received
    500
    Rep Power
    822
    Quote Originally Posted by Ju1c3 View Post
    Yeah, I copied over everything exactly as it was from my Windows machine and changed the .sh files.
    Is the capitalization the same?

    Case doesn't matter in Windows so people often ignore it, but it matters on Linux
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2010
    Posts
    536
    Thanks given
    61
    Thanks received
    25
    Rep Power
    4
    Linux' paths are using these ones:
    Code:
    \
    While Windows uses
    Code:
    /
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2011
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I checked the capitalization and everything looks good.

    Quote Originally Posted by Say Wut? View Post
    Linux' paths are using these ones:
    Code:
    \
    While Windows uses
    Code:
    /
    I changed the my run.sh to this:
    Code:
    java -Xmx200m -cp bin:deps\poi.jar:deps\mysql.jar:deps\mina.jar:deps\slf4j.jar:deps\slf4j-nop.jar:deps\jython.jar:log4j-1.2.15.jar server.Server
    However I still get the same error as above.
    Reply With Quote  
     

  7. #7  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Dunno why but sometimes it helps to paste that line directly into the terminal instead of executing it via a shell file

    Attached image

    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Registered Member

    Join Date
    Sep 2007
    Age
    32
    Posts
    2,396
    Thanks given
    5
    Thanks received
    436
    Rep Power
    902
    linux is case sentistive, so all folder names, must be exactly as they are called
    Hyperion V2 Martin's Updates.

    Scar says:
    i hate it when it hits your face
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Jul 2011
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hmm, that gave me a different error.

    Code:
    root@vps:~/Dropbox/IX-RSPS# java -Xmx200m -cp bin:deps\poi.jar:deps\mysql.jar:deps\mina.jar:deps\slf4j.jar:deps\slf4j-nop.jar:deps\jython.jar:log4j-1.2.15.jar server.Server
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mina/common/IoAcceptor
    Caused by: java.lang.ClassNotFoundException: org.apache.mina.common.IoAcceptor
            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:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    Could not find the main class: server.Server.  Program will exit.
    Sorry for being such a bother, I just really don't want to have wasted my money.
    Reply With Quote  
     

  11. #10  
    Registered Member

    Join Date
    Sep 2007
    Age
    32
    Posts
    2,396
    Thanks given
    5
    Thanks received
    436
    Rep Power
    902
    Quote Originally Posted by Ju1c3 View Post
    Hmm, that gave me a different error.

    Code:
    root@vps:~/Dropbox/IX-RSPS# java -Xmx200m -cp bin:deps\poi.jar:deps\mysql.jar:deps\mina.jar:deps\slf4j.jar:deps\slf4j-nop.jar:deps\jython.jar:log4j-1.2.15.jar server.Server
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mina/common/IoAcceptor
    Caused by: java.lang.ClassNotFoundException: org.apache.mina.common.IoAcceptor
            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:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    Could not find the main class: server.Server.  Program will exit.
    Sorry for being such a bother, I just really don't want to have wasted my money.
    ah yes, had this problem before, I couldnt find the solution, so I just copy and pasted all deps into your java directory

    if your using JDK:

    \jdk1.6.0_17\jre\lib\ext\

    your copy and paste everything in the "deps" folder into that folder

    or if your using JRE

    \jre\lib\ext

    BUT its up to you to figure out where you installed java, just jsut copy and paste everything in the "deps" folder into that one above.
    Hyperion V2 Martin's Updates.

    Scar says:
    i hate it when it hits your face
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Ubuntu
    By Drake in forum Software
    Replies: 55
    Last Post: 08-25-2011, 05:02 AM
  2. ubuntu help.
    By xryz in forum Software
    Replies: 0
    Last Post: 01-09-2011, 11:34 PM
  3. Ubuntu
    By Ivo in forum Software
    Replies: 4
    Last Post: 06-10-2009, 05:11 AM
  4. Ubuntu
    By Heaven Sent in forum Software
    Replies: 4
    Last Post: 02-18-2009, 06:32 PM
  5. Ubuntu
    By Itz Matthew ♥ in forum Software
    Replies: 6
    Last Post: 07-16-2008, 02:42 AM
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
  •