Code:
Exception in thread "main" java.lang.NoClassDefFoundError: server/Server
Caused by: java.lang.ClassNotFoundException: server.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.Server. Program will exit.
Press any key to continue . . .
Code:
@echo off
title Faith-Pk
cd src
java -Xmx512m -cp "C:\Program Files\Java\jre1.6.0_14\bin\java.exe" server/Server
pause
Let me explain the jre incase anyone asks. If i run a server with jdk above 16 (i have 18) it will not run the server for others. Where as jre6u14 does.
Any help?