LiveConnect - where do i import netscape.javascript.* from?

I'm trying to get some LiveConnect stuff running with a Java applet, but can't seem to find where to import
the package netscape.javascript.* from.
Can anyone please help? Many thanks

I've just installed Linux 9, jdk1.4.2_04, and Netscape 7.1.
I am trying to compile a working program (on Win.XP) using Ant.
I'm getting an error on the "import netscape.javascript.*;" statement.
I've reviewed many forum posts but I can't find the plugin.jar file anywhere.
I do have a plugin.pack file in <JAVA_HOME>/jre/lib
Anybody got an idea where plugin,jar might be or is plugin.pack some incantation I missed?
If so, what do I do with it?
Jim

Similar Messages

  • Can't Import netscape.javascript; classpath set properly

    I have an applet that is trying to say
    import netscape.javascript.*No matter how I try to compile it, I get the error
    package netscape.javascript does not existI am primarily using ant for building; here is the pertinent section of my build.xml file:
    <property name="output" location="javaclasses" />
       <target name="compile">
          <javac srcdir="./"
                 destdir="${output}"
                 includes="**/*.java"
                 classpath="./,\
                            javaclasses/packages/epsgraphics.jar,\
                            /usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/lib/plugin.jar,\
                            javaclasses"
                 listfiles="yes">
          </javac>
       </target>Note that plugin.jar is included in my classpath. Using jar -tf <...>/plugin.jar, I can see that it contains the netscape package, the javascript subdirectory, and the JSObject.class I am interested in.
    Attempting to resolve this manually with the command line
    javac -classpath "./;javaclasses/packages/epsgraphics.jar;/usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/lib/plugin.jar;javaclasses" myApplet.javagives the same error.
    Moving plugin.jar to my local directory, or any other directory specified in the classpath (which worked just fine until I tried accessing plugin.jar) and re-jiggering the classpath so it can be located gives the same result: it can't find netscape.javascript.
    I'm using javac from java-1.5.0-sun-1.5.0_update13-sr2 on Suse Linux 10.3.
    What am I missing here?

    As noted, the class is present in the jar file, as revealed with 'jar -tf plugin.jar'
    I've fiddled with separators, as well. You're correct that a colon is used under Linux; that is what I had used in earlier attempts, but wound up copying the latest incarnation, which was desperately cribbed from another forum's example, thinking that Java might have other ideas. None of the variants I tried worked.
    Trying it again, replacing the command line given with colons, still doesn't work; fails with the same message.
    Currently pursuing another Ant solution, with no joy.
    Thanks for your reply.

  • Where to download the "netscape.javascript.*" package

    Anyone who did before can help me to find where i can download "netscape.javascript.*" package.Thnx in advance.

    http://www.applepiesolutions.com/mayscript/

  • Import netscape.javascript.JSObject;

    import netscape.javascript.JSObject;
    This library is deprecated? In this case. Can I replace it with another solution?
    Thanks.

    Not sure. First, I am not sure why you think JSObject is deprecated. After all the link I gave you is for Java 6.
    DOM seems to be more official and the way to go in the future, but they say only IE and Mozilla seem to support it.

  • Where to download netscape.javascript.JSObject?

    I have this statement in my Java program
    import netscape.javascript.JSObject , and when i cannot compile. May I know where I can download this package?

    Hi,
    Check out below links, i hope it will help you.
    http://docs.iplanet.com/docs/manuals/js/server/jsref/lcjsobj.htm
    http://www.netscape.com/eng/mozilla/3.0/handbook/javascript/packages.htm#1007459
    http://www.mozilla.org/oji/MRJPlugin.html
    http://developer.netscape.com/docs/technote/javascript/liveconnect/liveconnect_rh.html
    http://www.innovation.ch/java/HTTPClient/disp_html.html
    Thanks,
    Dakshin.

  • MyApplet.java:2: Class netscape.javascript.JSObject not found in import.

    Hi,
    Im getting: MyApplet.java:2: Class netscape.javascript.JSObject not found in import.
    import netscape.javascript.JSObject;
    Where can i get this package. Someone said jaws.jar, but its not to be found. Im new on this project and I dont know how the old people compiled this applet.
    JDK version is:
    Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)
    Thanks

    Thanks man!
    I installed the jdk1.4 on my workstation. I then compiled the program via JDeveloper and pumped the class over to my server.
    Thanks again.

  • Cannot Resolve Symbol  netscape.javascript.JSObject

    I am trying to communicate fom an applet to a javascript. I am usinjg jdk1.3.1 and did an import netscape.javascript.JSObject; in my applet class.
    When I compile I get cannot resolve symbol JSObject. The import does not seem to work.
    Do I have to download the package from somewhere and put it in the jdk1.3.1 dir in some place?
    Thanks

    Ive netscape 7.1 and the JSDK 1.4.2. The Java40.Jar doesnt seem to be present in my netscape folder anywhere so I assume that it isnt included in the newest version of netscape.
    I tried using the javaws.jar that came with my JSDK but it didnt work. I opened it up and searched it and saw no mention of a JSObject file.
    Im a little confused at this point. Where can I look up the location of the JSObject?

  • Calling javascript from applet

    I want to access some javascript code from an applet.
    The applet should use swing, so the html page has all the code to launch java plug-in.
    As per jsbible, ch. 38, I import netscape.javascript classes and insert the following statement in init():
    mywin = JSObject.getWindow(this);
    While opening in browser, I get the following error:
    netscape.javascript.JSException
    at netscape.javascript.JSObject.getWindow(Unknown Source)
    at ShowDoc.init(ShowDoc.java:19)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Q1. How should the statement look? The problem seems to be with this, but I don't know what to replace it with. Or it could be Q2:
    Q2. Where shoud the magic word MAYSCRIPT be placed in the swing applet call (I'm using the universal template - both IE and NS - in htmlconverter).
    Thank you all

    I narrowed the problem to Q2:
    Where in the call of a swing applet does one insert the MAYSCRIPT parameter?

  • Package netscape.javascript.*

    Hi experts out there,
    I have a code that has import statement:
    import netscape.javascript.*
    Any idea from where can I down this package from?
    Any quick help will be higly appreciated. My posting this on "Java Programming" forum received no response.
    Thanks,
    Ramesh

    STFW. 30 seconds of Google searching came up with this link to the documentation for the package:
    http://www.netscape.com/eng/mozilla/3.0/handbook/javascript/packages.htm
    Nobody should be surprised that it comes from Netscape. Look around there.

  • Problems finding the netscape.javascript api

    I'm trying to import netscape.javascript.* into my applet so that I can perform some basic calls to javascript functions. I've got both Java 1.4.2 and 1.5.0 beta versions and I've tried all sorts of path additions. My current one is this:
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Java\jdk1.5.0;C:\Program Files\Java\jdk1.5.0\jre\lib\plugin.jar;C:\Program Files\Java\jre1.5.0\lib\jaws.jar;C:\Program Files\Common Files\Autodesk Shared\;C:\3dsmax5\backburner2\
    since I've read a tutorial that says I have to include the jaws.jar and another forum post that says I need to include the plugin.jar. Neither, however, work. I'd prefer it if I didn't have to use liveConnect at all, so does anyone know if thats possible.
    Any help would be most appreciated. Regards

    You will find the package in C:\Program Files\Java\j2re1.4.2_05\lib\plugin.jar if you use the default locations.

  • Netscape.javascript.ISObject ????

    I'm new in Java so I don't know how to add any external classes to my Java environment. I've downloaded
    the ifc112 library, I have all sources, I defined the environment variable CLASSPATH but still when I write in code:
    import netscape.javascript.JSObject;
    the compiler tells my that the netscape package no found. Maybe I need somthing more then j2sdk1.4.2_03?
    please help!

    The JSObject is located in plugin.jar which located in: ..\java\j2rel..4.2_03\lib on my machine.
    plugin.jar is part of the Java 1.4 sdk.
    Direct your project to reference plugin.jar and it should fix your problem.
    [email protected]

  • How to I import a folder from another FCP Project?

    I come from the Avid world where you can import a bin from one project directly into another. Is is possible to do this in FCP? I have this one folder
    with all my music in it which I created in the first project and I'm trying to import this music folder into different projects.
    Should I have created a project called music and just open that project everytime I wanted to use music for different projects?
    Patch2000

    I have this one folder
    with all my music in it which I created in the first
    project and I'm trying to import this music folder
    into different projects.
    I think you should simply organize your Music into a Folder on your computer. When you're doing a project that needs music... point to/import from this folder. No need to import every piece of music you have in your library.
    You can audition your music outside of FCP then import what you need. It's the same with Motion Backgrounds too.

  • Where i can find the package "netscape.javascript.JSObject;" ??urgent

    where i can find the package "netscape.javascript.JSObject;" ??urgent
    please

    The Java Plug-in 1.3 ships netscape.javascript in a JAR file called JAWS.JAR. To compile an applet which uses JSObject, just add JAWS.JAR in the CLASSPATH before compilation.
    If you don't have the Plug-in, but do have a Netscape browser installed, you can add the java40.jar file that comes with Communicator to the end of your CLASSPATH (or extract the netscape.* classes from there).

  • When I try to import .olm files from my external hard drive back up, where do they go? It says on different forums they go to the "on my computer" folder but they are not there

    When I try to import .olm files from my external hard drive back up, where do they go? It says on different forums they go to the "on my computer" folder but they are not there.
    I go through all the instructions but then my emails do not appear. I'm starting to panic a bit!

    You might want to try asking on the MS Office Outlook forum - http://answers.microsoft.com/en-us/mac/forum/macoutlook - since those are Outlook files.
    Also note which method you're using to create a backup.
    Clinton

  • Where to find "netscape.javascript.*" package to download.

    Hi all anyone got idea where to download the "netcape.javascript.*" package for applet to communicate with Javascript.Thanks in advance.

    Support is shipped in the plugin. I believe depending on the version
    in jaws.jar or javaplugin.jar.

Maybe you are looking for