Added JAWS.jar as external classpath

But I am still getting an error on the JSObject class. I have import netscape.javascript.JSObject but it isnt finding it. Does JAWS.jar still contain the JSObject class. AARRRGGHHH !

But I am still getting an error on the JSObject class.
I have import netscape.javascript.JSObject but it
isnt finding it. Does JAWS.jar still contain the
JSObject class. AARRRGGHHH !I too am new to java. I installed sdk1.4.2_05 and all was well until I included an import for netscape.javascript. I determined I needed the JAWS.jar in the classpath but I can not find the file. I've reinstalled the SDK to be sure I didn't miss anything. Any ideas?

Similar Messages

  • Adding a jar to the classpath of an executable jar (mixing -jar and -cp)

    Hello,
    frankly I hesitated over posting this to "New to Java"; my apologies (but also, eternal gratefulness) if there is an ultra-simple answer I have overlooked...
    I integrate a black-box app (I'm not supposed to have the source) that comes packaged as an executable jar (with a Manifest.MF that specifies the main class and a bunch of dependent jars), along with a few dependent jars and a startup script. Long story short, the application code supports adding jars in the classpath, but I can't find a painless way to add a jar in its "classpath".
    The app's "vendor" (another department of my customer company) has a slow turnaround on support requests, so while waiting for their suggestion as to how exactly to integrate custom jars, I'm trying to find a solution at the pure Java level.
    The startup script features a "just run the jar" launch line:
    java -jar startup.jarI tried tweaking this line to add a custom jar in the classpath
    java -cp mycustomclasses.jar -jar startup.jarBut that didn't seem to work ( NoClassDefFound at the point where the extension class is supposed to be loaded).
    I tried various combination of order, -cp/-classpath, using the CLASSPATH environment variable,... and eventually gave up and devised a manual launch line, which obviously worked:
    java -cp startup.jar;dependency1.jar;dependency2.jar;mycustomclasses.jar fully.qualified.name.of.StartupClassI resent this approach though, which not only makes me have to know the main class of the app, but also forces me to specify all the dependencies explicitly (the whole content of the Manifest's class-path entry).
    I'm surprised there isn't another approach: really, can't I mix -jar and -cp options?
    - [url http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]This document (apparently a bible on the CLASSPATH), pointed out by a repited forum member recently, does not document the -jar option.
    - the [url http://download.oracle.com/javase/tutorial/deployment/jar/run.html]Java tutorial describes how to use the -jar option, but does not mention how it could play along with -cp
    Thanks in advance, and best regards,
    J.
    Edited by: jduprez on Dec 7, 2010 11:35 PM
    Ahem, the "Java application launcher" page bundled with the JDK doc (http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html) specifies that +When you use [the -jar] option, the JAR file is the source of all user classes, and other user class path settings are ignored+
    So this behavior is deliberate indeed... my chances diminish to find a way around other than specifying the full classpath and main class...

    I would have thought that the main-class attribute of the JAR you name in the -jar option is the one that is executed.Then I still have the burden of copying that from the initial startup.jar's manifest. Slightly less annoying than copying the whole Class-path entry, but it's an impediment to integrating it as a "black-box".
    The 'cascading' behavior is implicit in the specification
    I know at least one regular in addition to me that would issue some irony about putting those terms together :o)
    Anyway, thank you for confirming the original issue, and merci beaucoup for your handy "wrapper" trick.
    I'll revisit the post markers once I've actually tried it.
    Best regards,
    Jérôme

  • Missing JAWS.jar

    I am new to java so I might have missed the obvious here. . I installed sdk1.4.2_05 and all was well until I included an import for netscape.javascript. and the package could not be found. I determined I needed the JAWS.jar in the classpath but I can not find the file. I've reinstalled the SDK to be sure I didn't miss anything. Any ideas?

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

  • Adding Classes to the JAR File's Classpath

    Ques 1- Can I use the wildcard * symbol in Manifest file to add classes/othes jar files to the JAR File's Classpath.I have folder named - Lib . where there are many jar files.Now,do I have to add each jar file by- Class-Path: Lib/jar1-name Lib/jar2-name . Instead, can I do this- Class-Path: Lib/*.jar OR Class-Path: Lib/*.class
    RIDICULOUS....105 views has been made but YET NO ANSWER. Isn't there anybody who knows the answer.
    Edited by: Tanvir007 on Apr 30, 2008 2:21 AM

    Ques 1- Can I use the wildcard * symbol in Manifest file to add ... other jar files ...?No. You could, however, place all your needed JARs in JavaHome/jre1.x.x/lib/ext - if this is a way for you.
    Ques 2 ??
    RIDICULOUS....105 views has been made but YET NO ANSWER.What hindered you to test it yourself?
    And the things we don't know far exceed the things we know. Why do you wonder?
    Have a nice day
    J�rg

  • Jaws.jar location

    Hello
    I am using SDK1.4.1_02. I thought the jaws.jar was a part of the sdk but when I try to run an app that needs the netscape.javascript package I get the error message that it cannot resolve the symbol. My path setting for Windows XP is: C:\j2sdk1.4.1_02\bin. I also tried putting (NETSCAPEdir)/java/classes/java40.jar ) in the classpath ( I tried C:\Documents and Settings\Owner\Desktop>javac -classpath C:\j2sdk1.4.1_2\lib ) but that did not work either. Any suggestions as to what I am doing wrong.
    thanks
    JM

    Its contents were moved to lib\plugin.jar, adding that to your classpath should resolve the compile linking

  • Execution from JAR files and Classpaths -- Help

    I am confused about how classes are resolved when running from within a JAR file, and why this is different than running a class that is not inside a JAR file.
    I have an application that uses classes from a third party library stored in a JAR file (biojava.jar) . If I run the app from the class file it works as expected and is capable of finding the external classes when the path to the biojava.jar is on my classpath. It also works if biojava.jar is instead placed in the extensions folder jre/lib/ext folder without an explicit path entry in my classpath.
    However when I package all my application classes up in a JAR file and try to execute the application from the JAR file it will ONLY work if I add a manifest entry to myApp.jar ... Class-Path: biojava.jar AND I place the file biojava.jar in the SAME directory as the Packaged JAR application. I would like to find a way to make this JAR file work for anyone who has biojava.jar in their classpath or ext directory. In other words I don't want my user community to have to copy the biojava.jar file when I email them myApp.jar. This community will already have biojava.jar on their CLASSPATH.
    How can I make my app within a JAR recognize either the user's CLASSPATH or ext folder? I have tried reading the documentation and many experiments but the only way it works is as described above.
    I am running Running Windows 2000.
    java version "1.4.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
    Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
    Here are the results of my experimentations:
    The following Works:
    Manifest: Main-Class: org/biojava/app/SequenceSpiral
    Manifest: Class-Path: biojava.jar
    Place biojava.jar in the same directory as SequenceSpiral.jar
    java -jar SequenceSpiral.jar
    This works perfectly
    NONE of the following work
    0) Placing biojava.jar in my jre/lib/ext directory instead of the same dir as SequenceSpiral.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/biojava/bio/seq/FeatureFilter
    (this is the first class referenced from biojava.jar)
    1) Just see if it will find the proper jar on my classpath
    Manifest: Main-Class: org/biojava/app/SequenceSpiral
    I have biojava.jar on my classpath but not in same directory as SequenceSprial.jar
    java -jar SequenceSpiral.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/biojava/bio/seq/FeatureFilter
    2) Specify the name if the jar in the Manifest Classpath and see if it will find the proper jar on my classpath
    Manifest: Main-Class: org/biojava/app/SequenceSpiral
    Manifest: Class-Path: biojava.jar
    I have biojava.jar on my classpath but not in same directory as SequenceSprial.jar
    java -jar SequenceSpiral.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/biojava/bio/seq/FeatureFilter
    3) Specify the path of the jar in the Manifest Classpath
    Manifest: Main-Class: org/biojava/app/SequenceSpiral
    Manifest: Class-Path: d:/biojava/biojava.jar
    I have biojava.jar on my classpath (D;\biojava\biojava.jar) but not in same directory as SequenceSprial.jar
    java -jar SequenceSpiral.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/biojava/bio/seq/FeatureFilter
    (note that in this case it is not fnding my main even though the Main-Class is specified)
    4) Specify current directory and biojava.jar in the Manifest Class-Path
    Manifest: Main-Class: org/biojava/app/SequenceSpiral
    Manifest: Class-Path: .;biojava.jar
    I have biojava.jar on my classpath (D;\biojava\biojava.jar) but not in same directory as SequenceSprial.jar
    java -jar SequenceSpiral.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/biojava/bio/seq/FeatureFilter
    5)Specify current directory and the URL of biojava.jar in the Manifest Class-Path
    Manifest: Main-Class: org/biojava/app/SequenceSpiral
    Manifest: Class-Path: . d:/biojava/biojava.jar
    I have biojava.jar on my classpath (D;\biojava\biojava.jar) but not in same directory as SequenceSprial.jar
    java -jar SequenceSpiral.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/biojava/bio/seq/FeatureFilter.
    Thank you very much for any help or suggestions,
    David Maynard

    I did some more testing and I think I now understand what is going on.
    I don't like it, but at least I understand it.
    The problem: I have an app packaged into a JAR file, myApp.jar. It has a dependancy upon an external JAR file extern.jar.
    extern.jar is on my Classpath (and also in jre/lib/ext)
    1) For some reason (bug?) java -jar myApp.jar does NOT use the classpath or the jre/lib/ext mechanisms to find .jar files needed to resolve references to external classes. This seems to be true even if you add an explicit -classpath argument on the command line!
    thus
    java -jar -cp c:\\absolutePathToMy\extern.jar myApp.jar
    also fails as does
    java -cp c:\\absolutePathToMy\extern.jar -jar myApp.jar
    2) Inside the myApp Jar file you can specify a URL to an jar extension jar file but the URL IS RELATIVE TO THE PATH WHERE THE myApp.Jar is executed from! If I add the Manifest item Class-Path: ..\..\..\myexterndir\extern.jar then
    java -jar myApp.jar
    works correctly and resolves the external references.
    This is why several people have reported that this class-path mechanism works ONLY when the extern.jar file is in the SAME DIRECTORY as the myApp.jar file when they had added a Class-Path: extern.jar to the Manifest.
    However together these two items make it IMPOSSIBLE to distribute myApp.jar to others and have it work since the path names statically encoded inside the jar are relative to where the jar gets executed from. If I move myApp.jar to a different location on my hard drive it may also fail.
    In my case I know all my customers already have extern.jar (5MB) installed on their classpaths and I would like to just send them the myApp.jar ( .5MB ).
    However I don't see how to do this given the current specification of a JAR file, and the bug that makes all -jar file act like they have the Sealed=true property.
    I tried explicity setting Sealed=false in the manifest but this didn't seem to have any effect.
    I hope that this will save others the many hours of time it has taken be to determine that JARS are not well suited for deploying apps with dependenncies on external libs.
    I also hope that someone can show me how execute a JAR and specify a classpath that doesn't get IGNORED my the classloader used in loading the jar classes.
    This is using java version:
    java version "1.4.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
    Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
    Does any one know this bug is fixed in a later release?
    David Maynard

  • How do you add a jar to the classpath?

    I'm trying to load a driver for MySQL, but the program doesn't seem to find the driver. I get an exception everytime. I keep seeing references about adding the jar (mysql-connector-java-5.1.6-bin.jar) to the classpath, but I don't know how to do that. Also, do I only that the jar, because there are other files along with it (src, com, etc.). I'm running Windows XP and using Eclipse.
    import java.sql.*;
    public class Driver {
         public static void main (String[] args) {
              try {
                   // Step 1: Load the MySQL driver.
                   System.out.println("BP01");
                   Class.forName("com.mysql.jdbc.Driver");
                   System.out.println("BP02");
              } catch (Exception e) {
                   System.err.println("Got an exception! ");
                   System.err.println(e.getMessage());
    }

    In Windows Explorer or the Command Prompt, try changing your directory to what the message about not finding the JAR in the repository says (C:\Documents and Settings\xxx\Desktop\mysql-connector-java-5.1.6\) and verify that something called mysql-connector-java-5.1.6-bin.jar! exists there.

  • Adding ejb.jars using ant

    I am trying to write an ant build.xml file that adds some ejb.jar files to the classpath.
    <project name="PRIMA Monitor" default="final stage" basedir=".">
         <!-- Init some path variables -->
         <target name="init">
              <echo message="Building PRIMA Monitor on ${os.name}" />
              <property name="src" location="ie/nuigalway/primamonitor"/>
              <property name="build" location="build"/>
              <property name="jars" location=" ./include/ejbBanHub.jar;include/kunststoff.jar;./include/jbcl.jar;.include/ejbPatient.jar;./include/ejbWearer.jar;./include/jbossall-client.jar"/>
              <property name="docs" location="docs"/>
              <property name="deploy" location="deploy"/>
         </target>
         <!-- Try and compile the source (in $src), dumping class files in the $build dir -->
         <target name="build" depends="init">
         <mkdir dir="${build}" />
              <javac srcdir="${src}"
                   destdir="${build}"
                   debug="true"
                   classpath="${jars}"
                   includes="**/*.java" />
         </target>
    when i run the build.xml i get some compilation errors associated with the ejb jar files(which i dont get when i manually javac the files). Am i adding the jar files correctly in the build.xml.

    typo error (";include/kunststoff.jar" or should be ";./include/kunststoff.jar") ?

  • Linux Version of netscape.javascript.JSObject(jaws.jar)

    Whats the linux for java version of jaws.jar and where does this reside under jdk installation for linux?
    We need to include it in classpath before compiling our app in linux.
    Thanks

    http://developer.java.sun.com/developer/JDCTechTips/2002/tt0219.html
    Look for javaplugin.jar instead.

  • Where can I get Jaws.jar from Sun?

    Where can I get Jaws.jar from Sun?
    thank you.
    while I use seach in download I do not find it.

    // new class for jsObject!!!! since 1.4.2 compile this:
    // javac -classpath "C:\Program Files\Java\j2re1.4.2_01\lib\plugin.jar" test.java
    // since jaws.jar does not exsist anymore
    // to compile with jaws: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" test.java
    http://www.tek-tips.com/faqs.cfm?fid=5101

  • Error While adding MDM jars

    Hello,
    I was trying to create a WDJ applicantion for connecting to the MDM system.
    When I tried to add the MDM  jars through "Add External Jars" option in NWDS.
    Also i tried to add through external library and add that in my WDJ application.
    When I tried to build the error: Compilation and build fails. Please see the error message.:
    Compile failed; see the compiler error output for details.
    Can anybody please suggest teh remidy for this
    [Error: com.sap.tc.buildplugin.DefaultPlugin  Thread[Worker-689,5,main]]
    [EXCEPTION]
    C:\Documents and Settings\mnaraya4\workspace.jdi\LocalDevelopment\t2\F867B35130709687F0871E7D15573434\default\logs\build.xml:244: Compile failed; see the compiler error output for details.
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:114)
         at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:57)
         at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
         at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:403)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:149)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:87)
         at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)
         at com.sap.tc.devconf.internal.DCProxyMake.make(DCProxyMake.java:302)
         at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:1355)
         at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:1337)
         at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:3653)
         at com.sap.ide.dii05.lib.internal.commands.dc.BuildJob.build(BuildJob.java:376)
         at com.sap.ide.dii05.lib.internal.commands.dc.BuildJob.doInWorkerThread(BuildJob.java:190)
         at com.sap.ide.dii05.util.api.job.JdiJob$1.doInWorkerThread(JdiJob.java:77)
         at com.sap.ide.dii05.util.internal.job.InternalJdiJob$3$1.run(InternalJdiJob.java:198)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1779)
         at com.sap.ide.dii05.util.internal.job.InternalJdiJob$3.run(InternalJdiJob.java:207)
         at com.sap.ide.dii05.util.internal.job.BusyBackgroundIndicator.showWhile(BusyBackgroundIndicator.java:74)
         at com.sap.ide.dii05.util.internal.job.InternalJdiJob.internalRun(InternalJdiJob.java:188)
         at com.sap.ide.dii05.util.internal.job.InternalDiiJob.runInternal(InternalDiiJob.java:305)
         at com.sap.ide.dii05.util.internal.job.InternalDiiJob.runL(InternalDiiJob.java:207)
         at com.sap.ide.dii05.util.internal.job.InternalDiiJob.run(InternalDiiJob.java:194)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
          [Error: com.sap.tc.buildplugin.DefaultPlugin  Thread[Worker-689,5,main]]

    Hello Saurav,
    Thanks for replying.
    Yes, I have gone through this link.
    We are using SAP NetWeaver Developer Studio 7.1 SP08 .
    We tried to add through the external library.
    But again the same error.If iam not adding the jars, its working fine.
    But the moment I add the jars (either through the external library or through "Add external jar") option, Its giving error.
    Basically 2 error:output for details.
    Error1:    output for details.      [Error: com.sap.tc.buildplugin.DefaultPlugin  Thread[Worker-732,5,main]]
    Error 2: [Error: com.sap.tc.buildplugin.DefaultPlugin  Thread[Worker-732,5,main]]
    Please suggest me if i am doing something wrong.
    Regards
    -sandip

  • I created a new itunes, but when i add the music i added it from my external hard drive by accident, so when i disconnect it and wish to play music without having it connected, obviously it asks me to located my songs, i dont want to locate each song help

    i created a new itunes, but when i add the music i added it from my external hard drive by accident, so when i disconnect it and wish to play music without having it connected, obviously it asks me to located my songs, i dont want to locate each song and i dont want to have to add all my music again, is there anyway of changing the location to a new folder all at once? for example, if it is my computer/harddrive/music/.... can i change it to mydocuments/musis/...
    and having the exact same music folder so all the further directions are accurate?
    thanks
    please i need help

    pass the music on your external hard drive to the computer then drag the to Itunes

  • Adapter jar file in classpath ?

    Hi All,
              Is it still a requirement to put the adapter jar file in classpath for the
              adapter developed using ADK in WLI2.1 and WLS6.1SP1 ?
              coz if I dont put it in the classpath, then its not able to find the message
              bundle files (.properties and .xml) !!
              Thanks
              Amit
              

    then i created a jar file named darshan.jar with following command :
    jar -xvf d:\darshan.jar darshan/*.classThat command doesn't create a .jar file, it extracts files from an existing one. You need to use c instead of x to create a new .jar file:
    jar -cvf d:\darshan.jar darshan/*.class

  • Help Nedded on how to add JavaMail.jar and JAF.jar to my classpath

    Hello.. please i want to add these two packages JavaMail.jar, and JAF.jar to my classpath.
    Can anyone show me how to do this?, if possible some example.
    Thanks.

    Hi!
    Just copy them into the %JAVA_HOME%/jre/lib/ext folder.
    Or...
    Add them to your classpath as:
    java -cp <path to your jar files>/mail.jar;<path to your jar files>/jaf.jar;. YourApp
    Hope this helps.

  • Did u use jar files as classpath for appletviewer?

    as tested, jar files can not be used as classpath for appletviewer.
    java command is bellow
    appletviewer -J-classpath -Jc:\folder00\some.jar; -Jc:\folder01\any.jar; MyAppletClass
    the jar files (or classpaths) above do not work.
    I am not sure about my test, so i post my Q here for confirming it.
    thx

    appletviewer needs HTML code to run an Applet similar to how the Applet would be run from a browser. It does not have a Classpath option.
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/appletviewer.html

Maybe you are looking for

  • Xcode 4 problem in Mac Os x 10.7.3

    Hi everyone. I bought today a Mac Os x 10.7.3 and when I install Xcode 4 from the App store, I still don't have the make command. I've reinstall it several times. can anyone help me please?

  • Convert http:\\ link text to normal text in pdf file.

    I want to convert all the http:\\ text as normal text, i.e., when I open a pdf file with Adobe Acrobat / Reader, all the text should be in normal format.

  • Flattening a vector in CS2

    I have a vector logo of a star, with designs and colors inside it. Is there a way to flatten everything inside the image so it's not editable anymore, but still maintain the vector star shape??

  • ICloud usage

    Both my iPhone and iPad have been upgraded to iOS 5.01 but have not used iCloud at all.  Is this service restricted to US users only?  Where I can find the setup and operation procedure?  I don't see how this service is so intuitive that every user k

  • AE CS4 editions (and Snow Leopard)

    From everything I've read, AE CS4 (if updated to v9.0.2) is compatible with Snow Leopard v10.6.8. I have the option of purchasing a pre-owned and de-activated edition of AE CS4 with a legally transferrable license. The case holding the two discs does