Thanks Ulf,
you were correct about the classes, in fact they do change some bytes (i compared the files, and noticed the differences)
i used the following code instead:
try{
URL url = new URL("http://cstation6.compressus.com:8080/eStation/clibwrapper_jiio.jar");
URLConnection connection = url.openConnection();
InputStream stream = connection.getInputStream();
BufferedInputStream in = new BufferedInputStream(stream);
FileOutputStream file = new FileOutputStream("d:\\version to replace\\clibwrapper_jiio.jar");
BufferedOutputStream out = new BufferedOutputStream(file);
int i;
while ((i = in.read()) != -1) {
out.write(i);
}
out.flush();
}catch(Exception e){
System.out.println("Error:"+e.getMessage());
}
which i'm posting here if anyone would like to use it
btw, the code here i found on
http://www.jguru.com/faq/view.jsp?EID=13198 Best,
Mohammad