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.

Similar Messages

  • 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).

  • Package netscape.javascript does not exist

    After reading posts related to this topic, I found that the package is shipped in a JAWS.JAR file and the JAR file should be included in the CLASSPATH for compile.
    I tried to add the JAR file to the CLASSPATH like this:
    C:\j2sdk1.4.1_01\jre\lib\jaws.jar
    However, this same problem happaned and still the package can't be found.
    I also tried another way to make it works which is to include the java40.jar file from Netscape directory. However, I can't find this file from Netscape 7.0.
    Can anyone help me to solve the problem?

    I have it working by creating a jar file for the applet.
    You unjar the jaws.jar file. Then you need to include the netscape folder in your applet jar as well as your applet class.
    I haven't tried it without creating a jar for the applet.

  • 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.

  • 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

  • Netscape.javascript.JSObject

    hi all
    where do i download the package
    netscape.javascript
    which extends java.lang.Object
    regards
    Pradheep

    You have two options
    1. domwload the rhino.jar from http://www.mozilla.org/rhino/download/
    or set your classpath to use the jre library 1.3 version or later, beacuse the jaws.jar insede the virtual machine contains the javascript object
    i hpoe helps to you
    [email protected]

  • Can't include netscape.javascript.*

    where can i find the package "netscape.javascript" ?

    public String forum(String question)
    return answer;
    why being so rude ? what's wrong with my question ?

  • 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/

  • 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.

  • 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]

  • 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?

  • Netscape.javascript.JSObject without applets - Urgent!

    Hi,
    I need to evaluate some Javascript expressions inside my java code... BUT my code is not inside an Applet class. Does anyone know how to do it?
    I chose to use the netscape.javascript package, it work well inside an applet.. but my application doesn't run inside an applet. When I try to run it inside a standalone application it fails (even if the application extends from the Applet class).
    Here is part of the code:
    public class Applet1 extends Applet {
    public void init() {
    try {
    String out;
    JSObject win = JSObject.getWindow(this);
    out=win.eval("2+3;").toString();
    jLabel1.setText(out);
    System.out.print(out);
    public static void main(String[] args){
    Applet1 app=new Applet1();
    app.init();
    The code runs perfect inside Internet explorer, but it crashes when running in standalone mode.
    Thanks.

    I need to evaluate some Javascript expressions inside
    my java code... BUT my code is not inside an Applet
    class. Does anyone know how to do it?Haven't actually used it, but Mozilla has the Rhino JavaScript interpreter:
    http://www.mozilla.org/rhino/
    Also you could Google for FESI, which is an ECMAScript interpreter (basicly an early version of JavaScript that went through the standards process).

  • Netscape.javascript.JSObject outside an applet class

    Hi,
    I need to evaluate some Javascript expressions inside my java code... BUT my code is not inside an Applet class. Does anyone know how to do it?
    I chose to use the netscape.javascript package, it work well inside an applet.. but my application doesn't run inside an applet. When I try to run it inside a standalone application it fails (even if the application extends from the Applet class).
    Here is part of the code:
    public class Applet1 extends Applet {
    public void init() {
    try {
    String out;
    JSObject win = JSObject.getWindow(this);
    out=win.eval("2+3;").toString();
    jLabel1.setText(out);
    System.out.print(out);
    public static void main(String[] args){
    Applet1 app=new Applet1();
    app.init();
    The code runs perfect inside Internet explorer, but it crashes when running in standalone mode.
    Thanks.

    You can also use Rhino to execute JavaScript
    http://www.mozilla.org/rhino/

  • Netscape.javascript.JSObject for mac

    I have the latest NetBeans version for mac os 10.5.
    What do I need to do to get access to the netscape.javascript package.
    I am trying to read cookies written using php into an applet. I am also open to solutions that do not need netscape.javascript.
    I am a beginner to the mac os so I am unable to translate the many solutions that appear to be for windows users. Apparently all I need to do is add Plugins.jar to my classpath, but I cannot find Plugins.jar, (or java40.jar or JAWS.JAR which apparently contained these packages in various releases), none of which I can find on my mac or available for download.
    I am sure this is very simple but I am running out of hair to pull out.

    I believe that for Mac, the required jar can be called plugin.jar or netscape.jar.
    Its location is somewhere around */System/Library/Frameworks/JavaVM.framework/Versions/<your version>/Home/lib*
    I don't have a Mac so I can't verify this , sorry.
    Good luck.

Maybe you are looking for

  • Error message from servlet to jsp

    Hi again, I have servlet and check error on this servlet then i would like to send error message to jsp page.Every error message will send to same JSP page.So JSP must receive message from Servlet.Can i do this? Please give me details and some source

  • I was happy with the previous version - can i get rid of the upgrade and go back to "normal" for me - i don't have time to relearn everything. it's annoying.

    I don't like many aspects of the updated version I downloaded a few months ago - I haven't even tried a newer version popping up in the corner of my desktop. I would like to get rid of the updated version and go back to the previous one. It suits my

  • Printer not showing up in "shared folder"

    Hello everyone: Have B&W G3 when using under 10.2.8 printer( HP 4m) attached thru combo of ethernet/appletalk using asante bridge the printer shows up under "shared printer" and can be accessed thru my wireless network. When I upgraded to 10.3.9 the

  • Oracle SQL developer tool vs toad

    Hi - I am trying to do a feature comparison on these 2 tools and am not very familiar with them could someone please tell me if Oracle SQL developer tool has these features: Project Manager Result Set Compare Chart Designer Toad Report Wizard Pivot &

  • While displaying the amount

    hi. i am displaying the amount in smartform. the amount should be displayed as the percentage. but it is displaying as amount. eg : tax% is 4.000% . but it is displaying as 40.00. can any one tell me the solution.