# USER.HOME

Jin Yue Gloria Wang (jywang@abacus.com.sg)
Fri, 6 Aug 1999 08:33:39 +0800

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: zze-minitel2001 balr002: "JSSE in Europ"
- Previous message: Ben Meikle: "JSSE"

    From: "Jin Yue Gloria Wang" <jywang@abacus.com.sg>

    To: luehe@laguna.eng.sun.com, java-security@java.sun.com

    Message-Id: <482567C5.00018AD3.00@notes.abacus.com.sg>

    Date: Fri, 6 Aug 1999 08:33:39 +0800

    Subject: USER.HOME

Hi Java Master,
I'm trying the Writing Files example on Java Security. First of all, the
configuration:
Web Server: WinNT, IIS 2.0
Client: Win95,Win98
Brower: IE5.0, Netscape 4.5 under Win95 (my computer)
IE5.0, Netscape 4.0 under Win98 (colleague's)

I did the whole thing according to your instruction on the web, even though
installed JRE1.2 & plugin, etc in my computer it failed. But it is strange that
in my colleague Win98 machine it succeed in both browsers, where the user home
is C:\windows.

The Java console message is shown as following:

Java(TM) Plug-in: Version 1.2.2.px
Using JRE version 1.2.2
User home directory = C:\WINDOWS\Favorites
Proxy Configuration: no proxy
JAR cache enabled.
Opening http://abs_mis/gloria/WriteFile.class no proxy
Opening http://abs_mis/gloria/WriteFile/class.class no proxy ?
load: class WriteFile.class not found.
java.lang.ClassNotFoundException: java.net.SocketException: Descriptor not a
socket: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
.
.

1. I realized that my user home is C:\WINDOWS\Favorites other than C:\windows
and the failure to change it make me
desperate. Why? Everytime I hooked PolicyTool it definitely automatically find
the .java.policy file under Favorites directory.
2. I did checked the location of WriteFile.class on the server, it is there. I
copy the .java.policy to both windows and
window\favorites
3. I download the new JDK1.2.2, removed the old JDK1.2 and installed the new one
in my machine. I don't think the error is
due to JDK becasue in another Win98 machine where JDK1.1 and JDK1.2 reside the
programme gets through.
4. I couldn't activate the Applet referring to user policy file by appletviewer,
the error is same as the one in Browser, and "is URL
corrent...".

Please give your advise on this.

Thank you & Best Regards,

Gloria

- Next message: zze-minitel2001 balr002: "JSSE in Europ"
- Previous message: Ben Meikle: "JSSE"