Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Please help with JSObject and JSExecption problem

Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
What's that smell? I think this tiny ad may have stepped in something.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic