[3957] in java-interest
Native method in Netscape
daemon@ATHENA.MIT.EDU (Rossella Santerini)
Tue Dec 5 16:21:59 1995
From: Rossella Santerini <ruge@psatit.ico.olivetti.com>
To: "'java-interest@java.sun.com'" <java-interest@java.sun.com>
Date: Tue, 5 Dec 1995 10:43:45 -0800
PROBLEMS ON NATIVE LIBRARY LOADING ON NETSCAPE 2.0B2
We run Netscape 2.0B2 on Windows 95. On server side we have a NT server.
Now we explain the situation:
1) we visit a remote html page that has an <applet> tag;
2) the .class file are installed in remote on the same server where there is the
html page;
3) the native library (DLL) is installed locally and the LD_LIBRARY_PATH points
to the directory where it is installed.
When we visit the remote html page, the native method applet is loaded and starts,
but seems to be problems when the native library must be loaded.
Java Console says:
Exception in thread "Thread-1" at netscape.applet.AppletSecurity.checkLink(AppletSecurity.java:136)
at java.lang.Runtime.loadLibrary(Runtime.java:213)
at java.lang.System.loadLibrary(System.java:277)
at HelloWorld.<clinit>(MyFrame.java:104)
at netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:130)
at
at netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:130)
at Application.init(Application.java:12)
at netscape.applet.EmbeddedAppletFrame.run(EmbeddedAppletFrame.java:248)
at java.lang.Thread.run(Thread.java:286)
Everything works correctly when the Applet page is loaded locally.
We tried installing on our computer the .class file that loads the native library,
setting the CLASSPATH to the directory where there is the .class file. Also in this
case it didn't work.
We ran AppletViewer both on local and on remote html pages and it worked correctly.
What it is necessary is that the native library is stored in a directory whose path
is specified in the environment variable PATH.
We have another question about the CLASSPATH environment variable.
We should like to know what is the correct value of this variable both for local
Java Applet and remote Java Applet.
Is it necessary to set this variable to the directory where there are
Netscape Java Classes??
....\java\classes or ....\java\classes\moz2_0.car or we have to specify only the
directory where there are the local application classes?
Rossella
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com