![]() |
Exception Error - Shed Some Light?
I need help with this problem please :) I would like to know what this error is telling me. Thank you guys <3
Problem One: Code:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ftpserver/ftplet/FtpExceptionCode:
C:\Users\Administrator>java -cp c:\server.zip com.spilka.server.ChatServer |
The first one appears to be missing the external library. Make sure you add the library on the classpath when invoking it (or as a part of the manifest if its jar'd). It also appears to not be able to invoke the main method on com.spilka.server.ChatServer.
The second is simply caused by a non-instance of an object which you are attempting to dereference. To what depth, we don't know you'll need to trace the stack to get to the cause. So within the main, you can follow the tack to the q and find that something is being derferenced which is null. Perhaps the argument itself is null. It can be try/caught since its an Exception to prevent the program from terminating, but that only has use if you have a fallback to go on (which chances are would be an error message and then exit anyway). Edit: Maybe an example of that would help. Code:
Integer myint = null; |
| All times are GMT +1. The time now is 12:46 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.