Read Serialized Objects from UNIX
When I try to read the serialized objects in UNIX from NT application, java.lang.ClassNotFoundException is thrown.
I get a message "object not visible from this context" when is.readObject() is executed.
Thanks in advance,
Bulent Ugurlu
//Declare the local variables
java.net.URL url =null;
ObjectInputStream is=null;
Object object=null;
try
{
url = new java.net.URL("http://atest.com/project/ser/ATest.ser");
is = new ObjectInputStream(url.openStream());
object =(Object) is.readObject();
} catch (java.net.MalformedURLException urle)
{urle.printStackTrace(); }
catch(java.io.IOException io)
{io.printStackTrace();}
catch(ClassNotFoundException cnfe)
{cnfe.printStackTrace();}

