Thread: VPS UBUNTU 10.10 run.sh

Results 1 to 4 of 4
  1. #1 VPS UBUNTU 10.10 run.sh 
    Banned
    Join Date
    Dec 2011
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    root@vps1194182:~/server# sh run.sh
    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.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
    Could not find the main class: server. Program will exit.
    root@vps1194182:~/server#


    My run.sh

    #!/bin/bash
    cd bin && java -Xmx300M server





    i use ubuntu 10.10

    Here is run.bat
    @echo off
    title LT-PK
    "C:\Program Files\Java\jdk1.7.0_01\bin\java.exe" -Xmx1000m -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
    pause


    Can some one help make it run.sh
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2011
    Posts
    100
    Thanks given
    5
    Thanks received
    5
    Rep Power
    29
    Isn't it supposed to be:

    Code:
    #!/bin/bash
    cd bin && java -Xmx300M server.Server
    Implying your using a normal PI server.

    Oh && you never set your classpath.
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Dec 2011
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Then how it supposed to be?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Dec 2011
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Please i pay rs gp
    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

Similar Threads

  1. Ubuntu
    By Drake in forum Software
    Replies: 55
    Last Post: 08-25-2011, 05:02 AM
  2. [PI] Ubuntu 10.10 VPS
    By Ju1c3 in forum Help
    Replies: 12
    Last Post: 07-18-2011, 09:21 PM
  3. ubuntu help.
    By xryz in forum Software
    Replies: 0
    Last Post: 01-09-2011, 11:34 PM
  4. Ubuntu
    By Ivo in forum Software
    Replies: 4
    Last Post: 06-10-2009, 05:11 AM
  5. Ubuntu
    By Heaven Sent in forum Software
    Replies: 4
    Last Post: 02-18-2009, 06:32 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
  •