Where do i need to put third party jar files in localmachine?

Hi
I am writing jsp where i am importing the classes from third party libraries. When i am running this jsp, it is getting error as "cannot access class ...". Where do i need to put these third party libraries in my local machine in order to run the jsp locally.
Thanks

The easiest way is to put them in WEB-INF/lib.
--olaf                                                                                                                                                                                                       

Similar Messages

  • Where to put third-party jar files

    ok i've made some classes that i use to filter file types for when the user needs to open a file, but i've just been putting the classes used for filtering in the project i'm working on and i was wondering where i would put a jar file that contains those classes so that i could include them in programs. for example like you include java.awt.

    Create a Jar from those classes and place it in the lib/ext folder of your JRE.

  • Where to put Third Party Jars in an .ear file

    Where to put Third Party Jar files in an .ear file so that they can be packaged along with the entire application and thus bypass the trouble of putting the third party .jars inside the application server lib directory and set the class path.

    Just put them in the root of your EAR. You can specify them in the classpath of your EJB JAR's manifest.

  • Where should the third party JAR files be placed ?

    Hi,
    We have a requirement to perform encryption / decryption of supplier bids. In this case we require to use third party provider JAR files with OA framework code. Where should the JAR files generally be placed in such a scenario ?
    Thanks and Regards,
    Sandhya

    Checkout this post.
    How to inclue a third party .jar file in OA fwk classpath Class not found

  • How to include third party .jar files into my jar file

    Hi,
    how do i include a open source third party jar file into an executable jar?
    i have a class called BlogBox.java and it uses org.apache.commons.net.ftp.FTPClient, i want to create an executable file, where do i put the .jar file containing FTPClient aka Apache Commons Net?
    currently i'm getting the following error from when executing my BlogBox.jar
    C:\MyJava\BlogBox>java -jar BlogBox.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
    at blogbox.BlogBox.<init>(BlogBox.java:27)
    at blogbox.BlogBox.main(BlogBox.java:103)
    Any suggestions? i have searched google and this forum but could not find the solution to my problem, thanks
    [edited msg] do i need to add the classpath at execution or something of the apache commons net library?
    Message was edited by:
    gekkokid

    When you use an executable jar the normal class path
    is ignored, but you can put a classpath inside the
    jar. The usual trick is to place the library jar
    files in a directory inside the application directory
    and direct the manifest file to it. The manifest file
    live in the jar inside the META-INF directory and
    it's called manifest.mf
    The two heavilly used entries are Main-class: and
    Class-path: lines. Class-path just has a
    comma-separated list of library paths.
    The jar utility has a special option to load it up.Thanks :) I created a "/lib" directory, placed in the packages in there and redirected the Class-Path: lib/commons-net-1.4.1.jar
    and it works,
    thank you everyone :)

  • Plz suggest me How to use Third party jar files in ODI

    Hi all,
    I need to know how to use the third party jar files or our own customised jar file in ODI.
    regards
    palash

    Hi all,
    I am unable to implement..................
    I have one question, if I add any type 4 coneection supported jar file in my ODI_CLASSPATH can I use them in writing procedure to connect Databases
    I am trying to connect Oracle database by putting Ojdbc14.jar in the class path of ODI_CLASSPATH so that in my procedure I can use it .............but failed I dont know how to solve this problem.
    another thing Open Tools are delivered as a Java package (.zip or .jar) containing several files:
    A compiled Java .class file
    Other resources, such as icon files is it so ..............Then I can use full java apllication by preparing required bunch of classes and by set them appropriately in open tool
    need ur suggestion....
    regards
    palash

  • Unable to access classes in third party jar files packaged with my ejb.jar

    I have packaged some third party jar files in my xxx_ejb.jar file.  The third party jar file contains classes that are accessed by some custom classes which are in turn accessed by my bean classes.  I get the following error when my custom classes attempt to use any of the classes in one of the third party jar files:
    java.lang.NoClassDefFoundError: com/Ostermiller/util/CSVParser
    Shouldn't I be able to access classes in jar files that are packaged with my xxx_ejb.jar file?  I see the xxx_ejb.jar file as a resource of the application classloader that contains it but I don't see the third party jar files.

    As per the Java EE specification, additional JAR files should be packaged on the EAR level. Only WAR files' WEB-INF/lib folder is scanned for JAR files to be added to the classloader.

  • Question about using third party jar files in Java Web Start Environment

    Hi everybody, I got a very strange problem and still can't figer out how to solve it. Can anyone help to overcome this problem?? Thanks in advance.
    Question: I wrote a simple java swing application to connect to Oracle database. I packed whole my classes and a third party jar file(classes12.jar) to a new jar file named "IRMASSvrMgntGUI.jar" and then use command 'jarsigner' to signed IRMASSvrMgntGUI.jar. There is no problem when I execute 'java -jar IRMASSvrMgntGUI.jar' in the command line. But when I execute this application via Web Start Environment, an "java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    " error occured with the following detail log shown in Jave Web Start Console:
    =============================================================
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at DBConnection.getNewConnection(DBConnection.java:25)
         at IRMASSvrMgntGUI.actionPerformed(IRMASSvrMgntGUI.java:524)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    ==========================================================================
    contents of the manifest file I used to create this jar file are as follows
    ===================================
    Manifest-Version: 1.0
    Main-Class: IRMASSvrMgntGUI
    Class-Path: classes12.jar
    Created-By: 0.9a (itoh)
    ===================================
    and file structures in "IRMASSvrMgntGUI.jar" is
    ====================================
    META-INF/
    classes12.jar
    DBAuthenticateDialog.class
    DBConnection.class
    IRMASSvrMgntGUI.class
    ====================================

    If you directly include classes12.jar in IRMASSvrMgntGUI.jar, the classloader won't be able to find the classes inside classes12.jar. You should sign classes12.jar separately and include that in jnlp along with your application specific jar. When you're launching your app using "java -jar somefile.jar" then the classpath settings in manifest file are used, but that's not the case when you start using JWS since in this case the classpath is based only on the " <jar href=..." entries in jnlp.

  • Using Third-Party jar file in database; Where to put license file?

    Hi!
    I have a third-party product that has a .jar file that references some .so files. I have successfully loaded the .jar file and the .so files are being called successfully, but when the program gets to the part where it reads the third-party license file, it is failing (ORA-3113 and an hs_err_pid<12345>.log and udump file are created. I know the issue is the location of the license file because I am getting the same exact error when I run it outside of the database. (I have been able to run it successfully outside of the database.)
    The instructions for the third-party product say to put the license file in the application's runtime directory.
    What I can't figure out is this: What is the application's runtime directory when I am running the code in the database?
    I thought it would be user.dir which is set to $ORACLE_HOME, but putting the license file there didn't work. I have tried lots of other places under $ORACLE_HOME.
    Any ideas?
    Thanks,
    Laurel

    Hi Laurel:
    Whether or not you can read the license file, sure you will have problem then when trying to load your .so file.
    Java JNI call are not allowed inside OJVM for security reasons, see Kuassi's answer to a similar question:
    Access Berkeley DB from Java Stored Procedure
    Best regards, Marcelo.

  • OSGI bundle creation using third party jar files

    Hi,
    I have a requirement to integrate our CQ5.5 based application with a third party. As part of this, I have to use some jar files. After lot of digging, I realised that the way to use external jar files is to create an OSGI bundle wrapping these jar files.
    So, I tried to do the same, but when I see the service details in system/console, I see errors. Can someone please suggest what could have gone wrong?
    I have to use 3 jar files. So, I placed them in lib folder as shown in the screenshot below.
    Ibuilt the bundle using .bnd file. It generated a jar file in install folder and I am able to to see its details in system/console/bundles. When I try to view details of the OSGI bundle that is installed, I see errors as follows:

    Here is my bnd file with all directives:
    Export-Package: *
    Import-Package: *
    Private-Package: *
    # Include-Resource:
    Bundle-Name: External Jar OSGI
    Bundle-Description: This OSGI bundle contains external jar file
    Bundle-SymbolicName: com.self.learning.externaljarosgi
    Bundle-Version: 1.0.0-SNAPSHOT
    Bundle-Activator: com.self.learning.osgi.oauth.Activator
    And here is what is shown in systems/console/bundle:
    Imported Packagesjavax.crypto from org.apache.felix.framework (0)
    javax.crypto.spec from org.apache.felix.framework (0)
    javax.servlet from cqse-httpservice (21)
    javax.servlet.http from cqse-httpservice (21)
    net.oauth -- Cannot be resolved
    net.oauth.client -- Cannot be resolved
    net.oauth.client.httpclient3 -- Cannot be resolved
    net.oauth.client.httpclient4 -- Cannot be resolved
    net.oauth.server -- Cannot be resolved
    net.oauth.signature -- Cannot be resolved
    org.apache.commons.codec.binary from org.apache.commons.codec (46)
    org.apache.commons.httpclient from com.day.commons.osgi.wrapper.commons-httpclient (77)
    org.apache.commons.httpclient.methods from com.day.commons.osgi.wrapper.commons-httpclient (77)
    org.apache.http -- Cannot be resolved
    org.apache.http.client -- Cannot be resolved
    org.apache.http.client.methods -- Cannot be resolved
    org.apache.http.entity -- Cannot be resolved
    org.apache.http.impl.client -- Cannot be resolved
    org.apache.http.params -- Cannot be resolved
    org.apache.http.util -- Cannot be resolved
    org.osgi.framework from org.apache.felix.framework (0)
    org.slf4j from slf4j.api (11)
    Regarding Export-Package, I know the function, class and its package I need to use. Would it be fine if I just export that package instead of using '*'? In such case, if this has dependency on some function in one of the 4 jar files I need to use, how does it get resolved? Do I need to Export those packages as well?

  • How to Call third party Jar into Application

    Hi Can any Expert help ?
    I want to put third party Jar into my application but i have some problem occur.
    1. how to call jar with parameter in application ?
    2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
    3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
    Thanks.
    Sanki Poon ([email protected])

    1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
    2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
    3) Under the resources tag you can have as many jar tags as needed.
        <resources>
            <j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
            <jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
        </resources>

  • JAR executable do not find third party Jars

    Boy I am beat.
    I am trying to build executable jar that needs bunch of third party jars.
    So I import the jars into a ext folder at the top of the pkg. I jar it all up (using Ant)with a manifast that point the classpath to the jars at the ext folder
    Dir Structure:
    myJar.jar
    |
    +-build
    |main class
    |
    +EXT
    |
    + bunchOfJars
    </pre>
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5
    Built-By: Ted I Weitz
    Classpath: ext/dom.jar ext/xsltc.jar ext/dt jar ext/vecmath.jar
    ext/j3dcore.jar ext/j3dutils.jar ext/xercesImpl.jar ext/xalan.jar
    Main-Class: myMain
    Command:
    java -jar myJar.jar
    I will be very gratfull for any idea
    Ted

    Just posted on this in another thread I am watching. As far as I know, and every other post I have seen on this topic, there is no way to do this without using a custom classloader that is used by the executing .jar itself to load any .jar files. How I can see this work is the main class is nothing more than a "classloader" launcher. It creates a new instance of this custom classloader. It then opens "itself" (the .jar the main class and all the .jar's are in), reads the manifest file to locate the .jar files the application requires, then either loads them, or somehow is able to reference them without directly loading them. The URLClassLoader is a good one to extend for this. It already opens up any .jar file specified in its path when being created, scanning for any files in there. Basically, you need to "extend" this functionality to scan any .jar's in the .jar, and so on. So, the launcher may be like so:
    public void main (String[] args)
    JarClassLoader jcl = new JarClassLoader(this.getClass().getClassLoader());
    jcl.launchApp(this);
    the jcl.launchApp would be a method that tells the classloader to use THIS class, its "root" dir, to locate the .jar file to open and scan for more jar files. Each time it comes across a .jar file in the .jar, it opens it and scans it as well.
    Keep in mind, when the URLClassLoader contains one or more .jar files, when a class it loaded references a class that is not found in the that classloaders parent loader classpath, it then starts looking in the .jar files in the URL[] path specified to it. It looks at all classes in the .jar files, but it does NOT look in nested .jar files in the .jar file. Basically, you could take the source code of the URLClassLoader, and add the ability to open up any .jar files nested in each .jar file as needed to resolve a class. I would imagine this could take some time at runtime, probably a second or two on slower machines for a single typecast. However, that would be dependent on the number of nested .jar files, the number of .jar's in the classpath of the classloader. I think I may undertake this task when I have time. I gotta finish my plugin engine first, then I may undertake this classloader. I am pretty sure that is the proper approach to take. However, because it is not part of the JVM .jar execution mechanism, a special bit of coding will be required, such as what I posted above. The main class in the .jar file will have to create this classloader and tell it to "execute" the program, passing to it another main class, specifying the location of the .jar file the main class is in, etc. Hell, you could almost bypass the java -jar app.jar and just do a java Classname where by the class and the .jar are bundled together, although this wouldn't be as nice. The reason this might be better is that then you wouldn't have to do any special coding in the .jar main class. I suppose though, by providing the "launcher" class and having a developer just extend it as part of their main class could also work.
    }

  • Eclipse third-party jar inclusion

    I really should know how to do this but...
    I'm using the Apache jakarta commons CLI package (org.apache.commons.cli)
    I had assumed that
    import org.apache.commons.cli.*;would work just like
    import java.util.Iterator;In that once it compiled, I wouldn't need to worry about where the third party jar file was etc and could distribute my package freely.
    Apparently I was mistaken:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
    How do I "include" the appropriate information in my .jar file so I don't have to worry about the environment in which the program is run?
    java is still my lovely language

    This program is a small part of a larger package, and
    sits in the same directory as a bunch of other .jars,
    each representing one program. It just seemed a little
    bit messy to require multiple files for a single
    program in this case.
    I did review the links, thank you, and have since used
    the class-path entry method with multiple .jars as a
    workable solution. I'm just not happy with it.Typically when users install software, they run one of those InstallShield (or their competitors) installers. And they have no idea how many files are created or what it does. One file, ten files, a thousand files, they don't really care.
    Right now it looks to me like you're wearing both the user hat and the installer hat here, and as a result not doing really well at either hat. You as the user shouldn't care if you have to install three or five files to run the program; to you as the installer it looks messy but compared to most real-life installs it's incredibly tidy. Don't worry about it.

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

  • How to add third-party jar in CRM ISA application?

    Hello SDN!
    I need to add third-party jar in CRM ISA application. I know how to add such jars in common case and for local DCs. But for CRM I can't determine which DC should contain this third-party jar.
    Please tell me ASAP which DC (e.g. crm/isa/home/ext) I should use.
    Help will be appreciated.
    Regards, Lev.

    Hi,
    To add third party jar you need to create new DC which contain your third party Jar. Once you have new DC with your Jar file you can add as Used DC in required DC.
    Please refer [Using External Libraries for Development with NWDI|http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/3ce3e4df201d63e10000000a11466f/content.htm] for more infromation to create DC with Jar File.
    eCommerce Developer.

Maybe you are looking for

  • How to refer a column value of a single row in conditional column display?

    Hello, does anybody have an idea, how i can refer a column value of a single row in conditional display of a column? So my idea is, that a report has a column, which value is only displayed, when another column value of this row has a specific value.

  • .MOD to .MOV File gew very large following conversion

    I had a .MOD file on my JVC that was 1.5GB in size (approximately 27mins in length) and I wanted to get it over to iMovie HD. I used software called 'mpegstreamclip' to covert it to a .MOV file. The conversion was successful and the video quality is

  • How to deploy Visual composer applications and set up the server

    Hi , I have SAP Netweaver developer studio client installed on my Laptop and I can use it to create VC applications but I cannot visualise the applications since I don't have server. Is there a server that  I can install and configure? and what else

  • Lock Computer

    Hey All! I am somewhat new to OSX (New Macbook, old Windows user) and I want to know if their is a way to "lock" the computer. I know their is a keyboard shortcut to logout, but can I just lock it like it does when it comes out of the screen saver? T

  • HT201077 I changed my apple ID and now i'm missing pictures

    I changed my apple ID, and my phone backed itself up on iCloud. I had some pics that were saved in just my photostream (not in my "photos" album) and now i'm missing most of the pics that were in my photostream. How can I retrieve the missing pics? I