Does "/Dropbox/IX-RSPS" contain the "bin" and "deps" folder?
|
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:
However, I always get this error: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
I CHMOD'd the entire directory (with -R for recursive) to 777 just to be sure, but it's still not working.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'd really appreciate any help I can get. I don't want my money to be wasted!
Does "/Dropbox/IX-RSPS" contain the "bin" and "deps" folder?
Yeah, I copied over everything exactly as it was from my Windows machine and changed the .sh files.
Linux' paths are using these ones:
While Windows usesCode:\
Code:/
I checked the capitalization and everything looks good.
I changed the my run.sh to this:
However I still get the same error as above.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
Dunno why but sometimes it helps to paste that line directly into the terminal instead of executing it via a shell file
Hmm, that gave me a different error.
Sorry for being such a bother, I just really don't want to have wasted my money.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.
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |