Recognizing serialized object without .class-file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Recognizing serialized object without .class-file

  1. #1
    Join Date
    Apr 2003
    Posts
    2

    Recognizing serialized object without .class-file

    My system has to run in a read-only enviroment, it has to load serialized objects of a class, which .class-file isn't present. Although I have run-time access to the .class-file, and I've managed to use ClassLoader to get the Class-object from the .class-file, now I can instantiate new objects of my class. But when I try to read a serialized object of that class, it still fires a ClassNotFoundException. So what can I do?

  2. #2
    Join Date
    Mar 2003
    Posts
    834
    Are you using ObjectInputStream?
    ArchAngel.
    O:-)

  3. #3
    Join Date
    Apr 2003
    Posts
    2
    yes..

  4. #4
    Join Date
    Mar 2003
    Posts
    86

    Class loading

    You have two separate flows here. The one load a calss that is not in the class path, and the other trys to deserialize a calss. When trying to deserialize the JVM looks for the class prototype in the loaded calsses, or the calss path. You need to some how let the JVM know that the calss is loaded, and how it can find it.

    Sharbov.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center