[code]
@echo off
title SunScape World 1 - Port 43594
cd ../build
java -classpath net/com/Server 43594
pause
[code]
Try that I not 100% sure since I haven't messed with linux in a while.
If it doesn't work let me know.
|
well i bought a linux VPS and now I cannot seem to get the server to run on centOS.
the error is here using:
Code:java net.com.Server 43594
Code:Exception in thread "main" java.lang.NoClassDefFoundError: net/com/Server Caused by: java.lang.ClassNotFoundException: net.com.Server at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: net.com.Server. Program will exit.
Here is my run.bat
Code:@echo off title SunScape World 1 - Port 43594 cd ../build "C:\Program Files\Java\jdk1.7.0_10\bin\java.exe" net/com/Server 43594 pause
I would really appreciate the help
Thanks so much
[code]
@echo off
title SunScape World 1 - Port 43594
cd ../build
java -classpath net/com/Server 43594
pause
[code]
Try that I not 100% sure since I haven't messed with linux in a while.
If it doesn't work let me know.
it didn't work :/ I got the error
Exception in thread "main" java.lang.NoClassDefFoundError: 43594
Caused by: java.lang.ClassNotFoundException: 43594
at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)
. Program will exit.ain class: 43594
./pvpscape/bin/runn.sh: line 3: pause: command not found
Please help
« 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 |