See if there is a gui.class in your client , or gui.java
|
Error: Could not find or load main class Gui, How do i fix?? Run.bat says
@echo off
Title Client
cd ./
"C:\Program Files\Java\jre7\bin\java.exe" -Xmx500m Gui 30 0 lowmem members 32
pause
See if there is a gui.class in your client , or gui.java
Both of them are there.
change the jre7 to your current JDK layout
"C:\Program Files\Java\jre7\bin\java.exe"
mine would be like this
"C:\Program Files\Java\jdk1.6.0_26\bin\java.exe"
It should work
I have Jdk1.7.0 and Jdk1.6.0_27? Which one?
Damn, Now it says
Exception in thread "main" java.lang.NoClassDefFoundError: Gui
Caused by: java.lang.ClassNotFoundException: Gui
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: Gui. Program will exit.
Last edited by Streetwave; 09-10-2011 at 03:42 PM.
Same thing, But this time it says Client...
Exception in thread "main" java.lang.NoClassDefFoundError: Client
Caused by: java.lang.ClassNotFoundException: Client
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: Client. Program will exit.
Last edited by Streetwave; 09-10-2011 at 03:41 PM.
Still nothing.
Check the capitalization of "Gui"
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |