my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Please help with JSObject and JSExecption problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Please help with JSObject and JSExecption problem" Watch "Please help with JSObject and JSExecption problem" New topic
Author

Please help with JSObject and JSExecption problem

Lawrence Keeney
Greenhorn

Joined: May 31, 2004
Posts: 17
I am trying to compile a small applet that will communicate with javascript.

The code requires the JSObject.class and JSExecption.class that I understand is part of a Netscape package named java40.jar. I have not been able to locate a copy of this jar file. I then was told that if I am using JDK/JRE 1.4, the jar is located under jre/lib and it's called plugin.jar. I found this file and placed it in the directory with my applet, but the applet will not compile.

I then extracted the JSObject.class and JSExecption.class files from the jar and placed them in the same directory as my applet, but even then it will not compile. I get an error that says "cannot access JSObject.

Can anyone tell me where I am going wrong?

If not can anyone tell me of another way to pass a String from an applet to a variable in javascript without using these two files?


Lawrence
 
Consider Paul's rocket mass heater.
 
subject: Please help with JSObject and JSExecption problem
 
Similar Threads
Compile Problem
Passing Parameters from Java to JavaScript
include Netscape package in CLASSPATH
Applet to Javascript Communication
can applet call javascript function?? HOW??