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.

Similar Messages

  • 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

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

  • Can I import CSS & Javascript to Parallax Scrolling?

    Hi
    I have an example of Parallax Scrolling which gives the image the illustion of colour change on each slide. A simple example is shown here:
    http://dev.creemama.com/krystalrae-scroll-effect
    I have tried to achieve this using basic Parallax Scrolling in Muse, but is does not work as effectively as the sample. Another example is shown here:
    http://krystalrae.com/2013/fall
    I asked the developer how he achieved this and he said they used simple CSS and Javascript. I have tried putting the CSS Code and the Javascript code into muse - but it doesn't work. Is it possible to put code (other than Google maps) into muse to get the above effect?
    I would be most grateful if anyone can help with this - I am sure it must be possible in Muse.
    Many thanks
    Deborah K

    user7488239 wrote:
    Hi ,
    I have one APEX application , now I have need import one  javascript file  to this application as static file in shared components .can I use sqlplus to upload this file to the application.
    Thank you . George
    Yes you can given that your source and target workspace have same name & id, basically you can export/import any files (images, css and static files)
    You can export individual static files and they can be imported only through SQL*PLUS
    See http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/deploy_export.htm#HTMDB25824

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

  • How can I import a javascript file in page template--11G update 2

    Hi,
    Since we don't have the <document> tag in page template how can I import a java script file ?
    --11G update 2
    Thanks

    Hi,
    best option is
    <trh:script>
    </trh:script>
    second best
    <f:verbatim>
    </f:verbatim>
    in JDeveloper 11 R1, the next release, trh:script can be replaced with af:resource
    Frank

  • Can't import HDV unless I set it for Apple Intermediate Codec

    I cannot import my HDV video for the life of me. I see it on the screen, I hit capture "clip," and it appears to be capturing fine, but when I'm done, the clips in the browser show the red line crossing through them and say "offline" when I try to play them.
    And when I hit "Capture Now," I don't get anything at all.
    Actually, I do get a clip that is approximately 1 second long that captures the last second of my video. The literal last second. So I capture one second that I'm actually trying to stop the video on.
    So I try Apple Intermediate Codec. It works PERFECT now!
    Only thing is, I would like to use HDV instead, because isn't it better quality?
    Plus it's just bugging me that I can't understand why I can't import on HDV settings. Why would it not capture a single frame except for the last second or two?
    I guessing it's timecode related, but the timecode seems to be continuous. Scenes do change where the camera was turned off and on, but the timecode is continuous.
    Thanks everyone for listening.

    I am using Final Cut Pro 5.
    I am probably using the latest version of Quicktime.
    Thanks for any advice!!!!

  • Can't import schemas in classpath when generating JAXB

    I'm trying to create schemas that are used to provide basic components for more complex schemas, using the same design idea behind creating abstract Java classes and then extending them. I'm having trouble referring to classes in different modules, though. Below is the start of a schema that refers to a schema that is stored in another jar file:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://xml.kitfox.com/schema/tw/ts"
        elementFormDefault="qualified"
        xmlns:tns="http://xml.kitfox.com/schema/tw/ts"
        xmlns:cmn="http://xml.kitfox.com/schema/common">
        <xsd:import schemaLocation="/com/kitfox/common.xsd" namespace="http://xml.kitfox.com/schema/common"/>
        <xsd:complexType name="sourceType">
            <xsd:attribute name="uid" type="cmn:uidType"/>
        </xsd:complexType>I'm generating my JAXB with the following task:
        <target name="bind-preferences" depends="init">
            <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
                <classpath>
                    <pathelement path="${javac.classpath}"/>
                </classpath>
            </taskdef>
            <xjc destdir="gen" extension="true" removeOldOutput="true">
                <schema dir="src">
                    <include name="**/*.xsd"/>
                </schema>
                <produces dir="gen">
                    <include name="**/*.java"/>
                </produces>
            </xjc>
        </target>Unfortunately, this causes the following error:
    [WARNING] schema_reference.4: Failed to read schema document '/com/kitfox/common.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
      line 9 of file:/C:/dev/kitfox.com/gameEngine/proj/tileWorld/src/com/kitfox/tw/ts.xsd
    [ERROR] src-resolve: Cannot resolve the name 'cmn:uidType' to a(n) 'type definition' component.
      line 24 of file:/C:/dev/kitfox.com/gameEngine/proj/tileWorld/src/com/kitfox/tw/ts.xsd
    [ERROR] src-resolve: Cannot resolve the name 'cmn:uidType' to a(n) 'simpleType definition' component.
      line 24 of file:/C:/dev/kitfox.com/gameEngine/proj/tileWorld/src/com/kitfox/tw/ts.xsdI know that the classpath passed into the xjc task contains the jar with my original schema. What can I do so that JAXB finds it? Also, how would I tell JAXB to extend the classes already generated for common.xsd in my original jar rather than regenerating them in the jar I'm compiling?

    Thanks. I've looked into using a catalog (the ant task allows you to specify a catalog), but don't think I've got the syntax right. Does the following look right to you?
    <!DOCTYPE catalog
      PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
             "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
    <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
             prefer="public">
      <uri name="common.xsd"
       uri="../gb/src/com/kitfox/common.xsd"/>
    </catalog>I've changed my schema to look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://xml.kitfox.com/schema/tw/ts"
        elementFormDefault="qualified"
        xmlns:tns="http://xml.kitfox.com/schema/tw/ts"
        xmlns:cmn="http://xml.kitfox.com/schema/common">
        <xsd:import schemaLocation="common.xsd" namespace="http://xml.kitfox.com/schema/common"/>
        <xsd:complexType name="sourceType">
            <xsd:attribute name="uid" type="cmn:uidType"/>
        </xsd:complexType>I'm still getting errors:
    [WARNING] schema_reference.4: Failed to read schema document 'common.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
      line 9 of file:/C:/dev/kitfox.com/proj/tw/src/com/kitfox/tw/ts.xsd
    [ERROR] src-resolve: Cannot resolve the name 'cmn:uidType' to a(n) 'type definition' component.
      line 24 of file:/C:/dev/kitfox.com/proj/tw/src/com/kitfox/tw/ts.xsd
    [ERROR] src-resolve: Cannot resolve the name 'cmn:uidType' to a(n) 'simpleType definition' component.
      line 24 of file:/C:/dev/kitfox.com/proj/tw/src/com/kitfox/tw/ts.xsdI've tried some variations such as leaving out the import/@schemaLocation attribute and hoping that the catalog could resolve that with the namespace alone or creating a fake http:// url for the schemaLocation, but none of that works. Would you know what I'm doing wrong with this catalog? The catalog and ant file are in the same directory and the relative path to the common.xsd file is correct.

  • In Thunderbird, how can I import more than one set of sub-folders from my old email program?

    I recently changed to Thunderbird from Microsoft Outlook Express (which I still have installed), on which I had two separate "identities", each having its own address book and set of sub-folders. The installation process successfully set up two new sets of files in Thunderbird (Inbox, etc.), one set for each of my previous identities, and successfully retrieved all the data from both address books, combining them in the process, but it has only retrieved one set of sub-folders. Is there any way I can copy the other set of folders across?

    I am pretty sure I answered this question this morning. posted more than once on the same subject have we?

  • Can't find netscape.javascript.*?

    Can some one explain to me how when I try to compile, I get an error saying that I don't have this package? I tried it with version 1.4.2, which has the java plug-in I'm sure. I'm kind of new to Java so try to make it simple if possible.
    Thanks,
    Andrew

    Assuming "%JAVA_HOME%" is the base directory of your Java installation, then you must include "%JAVA_HOME%/jre/lib/plugin.jar" in your classpath during compile time.

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

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

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

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

Maybe you are looking for