Cannot use JavaScript to launch a signed Java applet

T

Terri I.

I am getting the following stacktrace when I try to launch a method in
a
signed Java applet via a JavaScript event. In my application, a user
can
click on an image and the onmousedown event launches a signed applet.
This
works fine using the native JVM in Netscape 4.75. But when I try to
do this
in Netscape 7 using the 1.4 plug-in, I get errors. I can call an
unsigned
applet just fine. And the code in my signed applet works fine if I
put it all
in the init() method, even if I pass in a parameter. There's only a
problem if
I try to call a specific method. What is the problem??
Oh yeah, the html file and the jar file are in the same directory on
the same server.


java.security.AccessControlException: access denied
(java.io.FilePermission
w:\hyperionics\hypersnap\hsdx.exe execute)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkExec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at LaunchHSDXPlugIn.openImageinHSDX(LaunchHSDXPlugIn.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(Unknown
Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.liveconnect.SecureInvocation$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)
 
M

Michel Gallant

Yes, I think the ability to use scripted call into *signed*
Java applets in JAR archives for JavaPlugin has not worked
correctly starting with Netscape 6. There is some
documentation about signing the script, but I don't believe
this works properly or at all!

If anyone HAS this working, please post and advise.

- Michel Gallant
http://pages.istar.ca/~neutron
 
T

Terri I.

I am running with plug-in 1.4.1_02. I was hoping maybe the 1.4.2 plug-in
took care of this, as I haven't been able to get it installed yet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top