This question was asked in a different forum too. But I didn't get an answer..
I have a class file and a saved object of that class. My
java application doesn't have that class in its libraries. When I tried to load the object using ObjectInputStream, it gives an ClassNotFoundException.
Then I use the following code.
But this code also gives me the same exception when reading the object. Hope for a help to do my task..
MyClass doesn't have a package name.
FileIOManager.readObject() is a method I created to read a object and it works fine for other object which have classes inside my libraries.