wood burning stoves 2.0*
The moose likes General Computing and the fly likes Compatibility issue in windows 7 with java.util.Observable class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Compatibility issue in windows 7 with java.util.Observable class" Watch "Compatibility issue in windows 7 with java.util.Observable class" New topic
Author

Compatibility issue in windows 7 with java.util.Observable class

Sanath sajjan
Greenhorn

Joined: May 29, 2012
Posts: 10
Actually our objective is to download the files from the server one by one. To achieve this I am using thread. In the run() method I am connecting to the http server and storing the data in an inputstream. After that I am writing to the file in a while loop 1kb at a time, at the end of the while loop I am changing the updating the progress bar and status of it. This works fine in xp and in windows 7 also but when I remove the LAN wire in xp, status has been changed to ERROR it’s not happening in windows7. All of the above code I wrapped in a try catch block.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

The JVM uses the networking DLLs (such as winsock) built into Windows to do all networking; sounds like you've come across a difference between how those DLLs are implemented in XP and 7. You might have to file a bug report with Oracle to get this fixed, they might have to provide special handling on 7. I assume you are using the latest JVM?


JBoss In Action
Sanath sajjan
Greenhorn

Joined: May 29, 2012
Posts: 10
Yes, I am using the latest version that is: 1.7.0.3 .

In windows 7 the exception is not happening but for windows xp its catching the exception. For example:

InputStream.read(); function from java.io.InputStream package.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compatibility issue in windows 7 with java.util.Observable class
 
Similar Threads
tomcate installation problem
WL with windows 2000 professional/windows XP professional
Glassfish installation
windows XP with windows 7
cant run Java rules round up game