Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-01-2008, 12:18 AM
Member
 
Join Date: Oct 2008
Posts: 5
Rep Power: 0
wrap23 is on a distinguished road
Default No Class Def Found Error:
Yes, I am currently in coding of a Runescape private server. I am very new and have obsulutely no idea what I am doing when it comes to errors such as these. When I attempt to run my client for the server, it comes up with a command prompt, No Class Def Found Error: Client. So, I go to a different server, and run the specified client for it, and the command prompt this time says, No Class Def Found Error: EGUI.
What do I do?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 10-01-2008, 01:15 AM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
we need to see all of what you entered and the response.
Please copy and paste it all here.
Also explain where the class files are (in a jar or where)
Do you have any doc for the program? Does it say how to execute the program?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 03:09 AM
Member
 
Join Date: Oct 2008
Posts: 5
Rep Power: 0
wrap23 is on a distinguished road
Default
It says I can't post images or links or images untill I have 20 posts or more. I'll just type out the problem.
Exception in thread "main" java.lang.NoClassDefFoundError: client
Caused by: java.lang.ClassNotFoundException: client
at java.net.URLClassLoad$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.Launder$AppClassLoader.loadClass<Unknown Source>
at java.lang.ClassLoader.loadClassInternal<Unknown Source>
Press any key to continue . . .
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 10-01-2008, 03:10 AM
Member
 
Join Date: Oct 2008
Posts: 5
Rep Power: 0
wrap23 is on a distinguished road
Default
To start the client, you either need to start by config.bat that opens up a command prompt along with the client to connect with the server, to show all errors when occured at the time. Or, use Startup.jar just to load up the client to connect with the server.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 10-01-2008, 04:03 AM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
Quote:
we need to see all of what you entered
You left off the command line that you entered.
Quote:
Also explain where the class files are (in a jar or where)
Where are the class files for the program?

I don't think there are restrictions on pasting into the "Reply" window. Prefer that to an image as it can be seen and worked with easier.

The error message says it can't find the class named client. Can you see a file named client.class on a disk or in a jar file?
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 10-01-2008, 04:32 AM
Member
 
Join Date: Oct 2008
Posts: 5
Rep Power: 0
wrap23 is on a distinguished road
Default
Originally Posted by Norm View Post
You left off the command line that you entered.

Where are the class files for the program?

I don't think there are restrictions on pasting into the "Reply" window. Prefer that to an image as it can be seen and worked with easier.

The error message says it can't find the class named client. Can you see a file named client.class on a disk or in a jar file?
I can't post images yet, I don't have enough posts. It says I need 20 or more. The class files for the server side are in a folder. And no I can't find a client.class. The client and server is hosted on a dedicated which is on a forum. I don't actually own the server, or have coded the server, I just have this error when I attempt to run the client. There is no command entered, just the startup.jar file that runs the client to connect to the server to play. When I use the config.bat isntead of Startup.jar, it brings up a command prompt to show any errors or reasons why Startup.jar won't start up the client. It then shows that error, and the client doesn't start up, so I'm guessing there is something wrong with my Java Virtual Machine. I have deleted a file called svchost.jar that was on my Start>AllPrograms>Startup>svchost.jar. I'm wondering if that is my problew.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 10-01-2008, 05:10 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
You are running the client program on your computer. To run, it MUST have class files on your PC.
Without the full text of the java command that is entered and the error message that is generated it is very hard to figure out what is wrong.
Since you don't understand java, you need to contact whoever wrote the program and get them to explain what is wrong and what you need to do to get the program to work.
You haven't given us enough information to be able to help.
We need:
the full text of the command that was entered.
The full text of the error message.
A listing of the contents of either the folders holding the class files or the contents of the jar file holding the class files.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 10-01-2008, 11:20 PM
Member
 
Join Date: Oct 2008
Posts: 5
Rep Power: 0
wrap23 is on a distinguished road
Default
I would post a link to the download so you can see how to run the program. It's ran by a .Jar file, not ran by entering a command inside a command prompt.
I can't post a link, I don;t have enough posts. And, that was the full error entered,
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 10-02-2008, 12:41 AM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
Quote:
it's ran by a .Jar file,
I assume you mean that you click on and open the .jar file to start the application.

Here's how to get some of what we need:
Open a command prompt
Change directory cd to the folder with the .jar file
Enter: java -jar <jarfilename>
Then copy and paste all of wht is on the screen -> click icon in upper left corner of command prompt window, chose Edit and chose Select all. The window goes white. Again icon, Edit and Copy.
Now paste that here.

Rename the .jar file to .zip and open the file. You will see the contents of the jar/zip file. Open and copy the contents of the manifest file and post it here. Look at the Main-Class: entry in the manifest file. What follows it? That is the name of the class that starts the app. Is that class in the jar file?

Rename the .zip back to .jar
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 10-02-2008, 05:07 AM
Member
 
Join Date: Sep 2008
Posts: 16
Rep Power: 0
jason wang is on a distinguished road
Default
I think that you don't include the necessary lib in your source code.
I met this situation before, most of them are this reason. So you can check that whether that lib include in your source code.
__________________
codeuu,source code
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JRE rtapplet class not found error avinash.natekar Java Applets 11 04-02-2009 09:02 AM
symbol not found error rmartyce New To Java 1 05-23-2008 06:58 AM
Class not found Exception surendra Java Servlet 4 01-11-2008 07:23 AM
Error: javax.servlet.ServletException: Column not found barney JavaServer Pages (JSP) and JSTL 1 08-07-2007 08:20 AM
Error: no class definition found toby New To Java 4 07-27-2007 08:01 PM


All times are GMT +2. The time now is 11:28 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org