P
patrick
I have a java application which reads a file from a website address:
URL vers = new URL("mysiteurl"+"/file.txt");
URLConnection conn = vers.openConnection();
conn.setDoInput(true);
conn.setUseCaches(false);
DataInputStream in = new DataInputStream(conn.getInputStream() );
String value= in.readUTF();
This works fine on windows XP, and fine on Windows Vista if the
application is installed (using Install4j) from a Vista administrator
account.
But if installed from Vista standard account i always get an exception from
the above:
java.net.ConnectException: Connection refused: connect.
Ive tried this with the different Vista execution levels and get the same
exception.
Reading a html file I get the Exception: Connection refused: connect.
Is there some reason why a java application cant read a file from the
internet on a Vista standard account?
URL vers = new URL("mysiteurl"+"/file.txt");
URLConnection conn = vers.openConnection();
conn.setDoInput(true);
conn.setUseCaches(false);
DataInputStream in = new DataInputStream(conn.getInputStream() );
String value= in.readUTF();
This works fine on windows XP, and fine on Windows Vista if the
application is installed (using Install4j) from a Vista administrator
account.
But if installed from Vista standard account i always get an exception from
the above:
java.net.ConnectException: Connection refused: connect.
Ive tried this with the different Vista execution levels and get the same
exception.
Reading a html file I get the Exception: Connection refused: connect.
Is there some reason why a java application cant read a file from the
internet on a Vista standard account?