java -Xmx512M server.Server
|
Well this is ANOTHER thread of a problem running on vps, just other error.
Hate the error.. how do i fix? :lCode: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.
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
java -Xmx512M server.Server
Tried that.
My server.java is actually located in src/server/Server
Last one is the .java file :l
so i got this:
java -Xmx512M src.server.Server
since it's Server.java and linux uses paths with capital letters :l
Lol wow...
You run the compiled version not the source try
windows
java -Xmx512m -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
linux
export CLASSPATH=/root/server/deps/mysql.jar:.:/root/server/deps/poi.jar:.:/root/server/deps/mina.jar:.:/root/server/deps/slf4j.jar:.:/root/server/deps/slf4j-nop.jar:.:/root/server/deps/jython.jar:.:/root/server/deps/log4j-1.2.15.jar:.:/root/server/bin
java -Xmx512M -server server.Server
Still error ;\
main class.... server/Server
*BUMP*
can anyone help me? my current source is unstable so i need to switch :L
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |