Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 NetBeans Packages > ClassCastException
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Zren




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: