NetBeans Packages > ClassCastException
Author |
Message |
Zren
![](http://compsci.ca/v3/uploads/user_avatars/1110053965512db6185954b.png)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|