Results 1 to 1 of 1
- 03-04-2011, 09:52 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 1
- Rep Power
- 0
ObjectInputStream() for Linux and Windows
I was able to read a file on Linux system using ObjectInputStream() to get objects. However, if I use the same code to read the same file on a Windows system, there is an error message as:
"java.io.StreamCorruptedException: invalid type code: 08"
Part of the code:
try
{
while( (o = p.readObject()) != null) <=======PROBLEM HERE
{
msgV.addElement(o); //use a vector to store all objects
}
}
catch(Exception e){};
I googled and couldn't find any clue for this problem. Can any of you help me?
Thanks.
Similar Threads
-
One program for both Windows and Linux
By satimis in forum New To JavaReplies: 8Last Post: 04-12-2010, 09:49 AM -
Under Windows OS, how to call *.EXE produced in Linux OS?
By tony_lincoln in forum Advanced JavaReplies: 9Last Post: 03-26-2010, 06:08 PM -
Errors running app in linux but not in Windows
By JohnST in forum New To JavaReplies: 3Last Post: 03-12-2010, 01:58 AM -
creating executable .jar for linux, mac, and windows
By JohnST in forum New To JavaReplies: 3Last Post: 01-21-2010, 01:51 AM -
[SOLVED] Windows Linux conflict - TrayIcon image not display in Linux
By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 04:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks