Computer Science Canada NetBeans Packages > ClassCastException |
Author: | Zren [ Mon Jun 08, 2009 2:19 pm ] |
Post subject: | NetBeans Packages > ClassCastException |
Edit: Found answer. I took all the classes out of the package. Alright, so my group is Working with netbeans in order to make a nice GUI application. The thing is, I made some of the lower level Classes in JCreator [for the formatting and familiarity]. When I brought them into Netbeans, in order for the soruce to compile I had to add: package studentPointsDBase;. All went well till I had to cast my Classes (we're using serialisation with files). When it turned up this error: Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: Student cannot be cast to studentPointsDBase.Student I'm sure it's a matter of some small thing, however I can't find it. |