How to include jar files in exporting an .jar with Eclipse

I would like to add jar libraries into my jar exported in that they are referenced in my java code . how can i do it with Eclipse?
Thanks for your response.

You mean to add a library in NetBeans? If so, click here

Similar Messages

  • How to include resource files in the application and how to retrieve ?

    Hi,
    I want to include resource file in my application jar file and retrieve data from the file ......Is there any way for it? How i create these resources files and how i include them?.........Which classes shall i use for retrieving the data from these files?.........Any kind of help would be appreciated........Iam using NetBeans IDE 6.1,CLDC1.0 and MIDP 2.0........Thanx,in advance..........

    How i create these resources files and how i include them?How you create the files will depend on what resources you need to include.
    [How to ask questions the smart way|http://catb.org/~esr/faqs/smart-questions.html]
    db

  • Including a jar file inside an executable jar file

    Is it possible to include a jar file inside another (executable) jar file such that the included file is part of the class path for the outer file? If so, how do you specify this in the classpath in the manifest?

    Russ_Bjork wrote:
    Is it possible to include a jar file inside another (executable) jar file such that the included file is part of the class path for the outer file?No. Actually, I suppose it would be possible if you do all the 'heavy lifting', but Java is not designed to handle Jars within Jars.
    What do you see as the advantage of doing that?
    Is your app. a rich client (e.g. Swing, AWT, SWT..)?
    Can you distribute the app. from a server or the internet?

  • How to include external files in JSP

    hi,
    How to include external files like image or javascript in to jsp pages.
    I am using MVC frame work. So i have to use request dispatcher. While calling the pages trough dispatcher the external files are missing from the output. Also am using tomcat as server,web.xml(deployment descriptor ) is also configured.
    regards
    sree

    When you use the request dispatcher, the relative path for all your ressources becomes the relative path of your calling serlvet and not the JSP/servlet that you call. Make sure to use the full relative path such as:
    /PATH_TO_YOUR_DIRECTORY/myRessource.ext
    NOT
    SOME_DIRECTORY/myRessource.ext
    Jeff

  • How to include the file name as an XML field

    Hi,
    I'm using a file adapter for process a flat file and convert it into an XML. Does anybody knows how to include the file name into an XML field.
    Ex.
    I process the file named <b>XXIMN21022007.txt</b> and I need an XML like:
    <MT_FILE>
    <field1></field1>
    <field2></field2>
    <field3></field3>
    <filename><b>XXIMN21022007.txt</b></filename>
    </MT_FILE>
    Regards
    Gonzalo

    Just go for dynamic configuration.
    Check the sender file adapter to write the filename in the header (as explained in Michal's blog) and then read that header in some mapping.
    U can use that even in simple message mappings.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Your code for the filename tag would be something like:
    <i>DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    return conf.get(key);</i>
    Regards,
    Henrique.

  • How to include .js file into validater-rules.xml

    iam doing project using struts.
    i have .js file for client side validation.how to include .js file into struts validate-rules.xml so that i can use those validation in my project.
    without writing any class.
    is there any way

    copy + paste from my book...............
    Enabling Client-Side Validations
    In addition to providing a framework for simplifying server-side form data validations, Validator provides an easy-to-use mechanism for performing client-side validations. Each validation routine defined in the validator-rules.xml file optionally specifies JavaScript code that can be run in the browser (client side) to perform the same validations that take place on the server side. When run on the client side, the validations will not allow the form to be submitted until they have all passed.
    To enable client-side validation, you have to place the HTML Tag Library's javascript tag in each JSP for which you want validation performed, as shown here:
    <html:javascript formName="logonForm"/>
    The javascript tag requires that you use the formName attribute to specify the name of a <form> definition from the validation.xml file, as shown here, for which you want validations performed:
    <form name="logonForm">
    <field property="username" depends="required">
    <arg0 key="prompt.username"/>
    </field>
    <field property="password" depends="required">
    <arg0 key="prompt.password"/>
    </field>
    </form>
    All the validations that you have specified for the <form> definition to run on the server side will be run on the client side.

  • How to import MXF files to Final Cut Pro with smooth editing

    Summary: Follow this tutorial to learn how to import and edit MXF files in Final Cut Pro by converting MTS to FCP native format.
    If you have a Panasonic P2, Canon XF or Sony XDCAM series camcorder,
    you may be familiar with Material eXchange Format (MXF). Though MXF is a
    great video format to record high-definition videos, it is not easy to
    use in that they are not natively supported by most NLE systems like
    Final Cut Pro. In order to import MXF to FCP for editing, the easy workaround is to transcode MXF files to FCP compatible video formats.
    Along with some help from a top MXF Converter, it can be done. To
    help those who wanna edit MXF files in FCP without problems, here I
    share with you a simple guide on how to convert MXF files to edit in
    Final Cut Pro 6/7 or FCP X.
    First of all, downloading the App- Brorsoft MXF Converter for Mac
    Overall, the program is a professional yet easy-to-use MXF Converter
    on Mac (Mavericks included) which can not only convert XF100, Canon
    C300, XF105 and XF305, Panasonic P2 recorded MXF files, but also provide
    simple video editing functions for you. The MXF to FCP Converter not
    only can convert MXF to ProRes for FCP, but also can transcode MXF
    videos for editing in Avid MC, Adobe Premiere Pro, iMovie, FCE, etc.
    Just download it and follow the tutorial below to get the work done.
    Transcoding (P2) MXF files to ProRes for Final Cut Pro 6/7/X
    1. Import MXF files to the converter
    Launch the best MXF to FCP Converter, and then click the “add files” button to browse and import MXF videos from your camcorder or hard drive.
    2. Select FCP editable format
    Click the Format bar, and move mouse cursor to choose “Final Cut Pro > Apple ProRes 422 (*.mov)” as output format.
    Tips:
    a. Settings- click to set video
    resolution(1920×1080/1440×1080/1280×720/720×480), bitrate (from 1Mbps to
    20Mbps), frame rate (24p/30p)
    b. Editor (next to “Add” icon)- click to set deinterlace, trim, crop, add effect, attach subtitles, etc
    3. Start transcoding MXF video to FCP
    Click “Convert” button to start converting MXF files to Apple ProRes
    MOV for FCP 6/7/X under Mac OS. Once the MXF to ProRes 422 conversion
    is done, you can transfer MXF footage into Final Cut Pro (X) for editing
    smoothly on Mac with ease.
    Source:How to import MXF files to Final Cut Pro with smooth editing
    [quote] jacknjchn.tumblr.com/post/76914947404/cant-import-mxf-footage-to-fcp-transcoding-mxf-to-fcp [/quote]

    You may refer to this step by step guide on how to convert MXF to Final Cut Pro more supported Apple ProRes or DV at http://www.idealshare.net/imovie-fcp/mxf-final-cut-pro.html
    It also applies to convert MXF to other video or audio format. It even applies to convert other videos like AVCHD, MOD, TOD, AVI, and MPEG etc to FCP format.

  • How to package resource files for iPad app along with ipa file

    Hello,
    I am developing an app for iPad in Flash Builder 4 and Packager for Iphone.
    I want to keep my xml-asset files local to the app. When I run my app in flash builder, I load the resources locally.
    When I upload the same onto iPad, I need to package the resource files along with the ipa file.
    I tried compiling the air-project with "-include-file" compiler option, but in vain.
    Any help?
    Tanu

    You can read through the resources documentation for iOS here:
    http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-7ff8.htm l
    Of particular interest is the line:
    "3. It moves the resource files to the top-level directory of the application."
    So not sure if you are using an ant build script or whatever to build your ANE, but as long as you place these json files into the folder with your library when you build the ANE, these will end up getting copied to the top-level directory of the application when an application is built using this ANE.
    This is exactly how I include an iOS .bundle of resources along with a .a in an ANE and it works fine. Nice clean packaging when distributing the ANE too.

  • Compress two .jar file into a new .jar file

    Hi all, i would like to ask it there anyone know how to compress two or more .jar file into one new .jar file?
    because i'm currently need to engage with one big project which have to add 34 .jar file into JCreator, so that the relevant classes can be found when compile the code.
    another question is, what is the maximum archive can be add into JCreator? is it limited or unlimited?
    So, any idea from you all?
    Regards,
    poh_cc

    You should probably ask the authors of JCreator about the limitations of it.
    The classloader can't read jars from jars and I would advice against extracting all jars and jar all classes into one big fat jar.
    Kaj

  • Problem in Creating a jar file using java.util.jar and deploying in jboss 4

    Dear Techies,
    I am facing this peculiar problem. I am creating a jar file programmatically using java.util.jar api. The jar file is created but Jboss AS is unable to deploy this jar file. I have also tested that my created jar file contains the same files. When I create a jar file from the command using jar -cvf command, Jboss is able to deploy. I am sending the code , please review it and let me know the problem. I badly require your help. I am unable to proceeed in this regard. Please help me.
    package com.rrs.corona.solutionsacceleratorstudio.solutionadapter;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.jar.JarEntry;
    import java.util.jar.JarOutputStream;
    import java.util.jar.Manifest;
    import com.rrs.corona.solutionsacceleratorstudio.SASConstants;
    * @author Piku Mishra
    public class JarCreation
         * File object
         File file;
         * JarOutputStream object to create a jar file
         JarOutputStream jarOutput ;
         * File of the generated jar file
         String jarFileName = "rrs.jar";
         *To create a Manifest.mf file
         Manifest manifest = null;
         //Attributes atr = null;
         * Default Constructor to specify the path and
         * name of the jar file
         * @param destnPath of type String denoting the path of the generated jar file
         public JarCreation(String destnPath)
         {//This constructor initializes the destination path and file name of the jar file
              try
                   manifest = new Manifest();
                   jarOutput = new JarOutputStream(new FileOutputStream(destnPath+"/"+jarFileName),manifest);
              catch(Exception e)
                   e.printStackTrace();
         public JarCreation()
         * This method is used to obtain the list of files present in a
         * directory
         * @param path of type String specifying the path of directory containing the files
         * @return the list of files from a particular directory
         public File[] getFiles(String path)
         {//This method is used to obtain the list of files in a directory
              try
                   file = new File(path);
              catch(Exception e)
                   e.printStackTrace();
              return file.listFiles();
         * This method is used to create a jar file from a directory
         * @param path of type String specifying the directory to make jar
         public void createJar(String path)
         {//This method is used to create a jar file from
              // a directory. If the directory contains several nested directory
              //it will work.
              try
                   byte[] buff = new byte[2048];
                   File[] fileList = getFiles(path);
                   for(int i=0;i<fileList.length;i++)
                        if(fileList.isDirectory())
                             createJar(fileList[i].getAbsolutePath());//Recusive method to get the files
                        else
                             FileInputStream fin = new FileInputStream(fileList[i]);
                             String temp = fileList[i].getAbsolutePath();
                             String subTemp = temp.substring(temp.indexOf("bin")+4,temp.length());
    //                         System.out.println( subTemp+":"+fin.getChannel().size());
                             jarOutput.putNextEntry(new JarEntry(subTemp));
                             int len ;
                             while((len=fin.read(buff))>0)
                                  jarOutput.write(buff,0,len);
                             fin.close();
              catch( Exception e )
                   e.printStackTrace();
         * Method used to close the object for JarOutputStream
         public void close()
         {//This method is used to close the
              //JarOutputStream
              try
                   jarOutput.flush();
                   jarOutput.close();
              catch(Exception e)
                   e.printStackTrace();
         public static void main( String[] args )
              JarCreation jarCreate = new JarCreation("destnation path where jar file will be created /");
              jarCreate.createJar("put your source directory");
              jarCreate.close();

    Hi,
    I have gone through your code and the problem is that when you create jar it takes a complete path address (which is called using getAbsolutePath ) (when you extract you see the path; C:\..\...\..\ )
    You need to truncate this complete path and take only the path address where your files are stored and the problem must be solved.

  • How did my pdf files get converted from 'open with Adobe Reader' to open with Adobe Acobat'?  And if I have a ''free'' Acrobat account why does it not open?  When I do click on the account it ask me to pay $89.99.  I never wanted Acrobat.  How can I get -

    How did my stored files get converted from 'open with Adobe READER' to 'open with Adobe ACROBAT'? How can I get them re-set to open with 'Adobe Reader'?
    Please reply to my e-mail:   [email protected]

    It sounds as if you downloaded Adobe Acrobat Pro. If you did, uninstall it. Then repair Adobe Reader.
    The free Acrobat account has no connection to any of this.

  • How do add .mov files in Premiere Elements 11 with Windows 8? I get a generic error message.

    How do add .mov files in Premiere Elements 11 with Windows 8? I get a generic error message.

    Hi Steve,
    Thanks for your quick response. The original movies were taken on a Canon ES970 (1990's). I don't know the resolution but things were not as high tech back then.,.. I used a Roxio software to convert them on my MacBook Air. I didn't realize that I could use Adobe Premiere Elements to do that or I would have. However my old camera did not have a cable to attach it to a computer and the Roxio software came with it.
    I then saved the recordings on an external hard drive. I did not make movies from them using iMovie or edit them in any way. They are simply .MOV files and they can be played on my Mac. Upon realizing how much memory it takes to work on videos, I decided it might be easier to burn DVD's on my husband's  new Dell desktop that came with Windows 8. I downloaded Quicktime as suggested and still the movies can't be added to Premiere.

  • Does Adobe Send allow you to select how many days your files can be downloaded - as with Adobe Send Now? Also, why don't I see the virus scanning message any longer with "Send" versus "Send Now"?

    Does Adobe Send allow you to select how many days your files can be downloaded - as with Adobe Send Now? Also, why don't I see the virus scanning message any longer with "Send" versus "Send Now"?

    We relied upon the "days available for download" to get people to take
    action more quickly. The "virus scanning" progress bar was simply another
    way of knowing this activity was actually taking place - unless this is
    written somewhere in the Adobe Send User Guide.....wherever that is.
    On Tue, Dec 2, 2014 at 12:09 PM, bob.treitman <[email protected]>

  • How  to include the inner classes in a jar file in netbeans ide

    Dear java friends
    how to say to netbeans ide that it has to include the
    inner classes in the jar file.
    (i have one single applet class
    with two inner classes that show up
    in the build/classes file but not in the jar).
    The applet works in the viewer but not
    in the browser (I believe because the
    xxx$yyy etc should be in the jar)
    willemjav

    First, please stop posting the same question multiple times:
    Duplicate of http://forum.java.sun.com/thread.jspa?threadID=5269782&messageID=10127496#10127496
    with an answer.
    Second, If your problem is that you can't do this in NetBeans, you need to post to somewhere that provides NetBeans support - like the NetBeans website's mailing list. These forums do not support NetBeans (or any other IDE) - they are Java language forums.

  • How can i include .so files in an executable .jar?

    Hi,
    I need to some native libraries to run my app. I want to put this .so files into a jar file.
    With a shellscript i can set the java classpath, but i need to have only the jar file. If anybody know what do i do to java search the files into a directory specified by me (a directory compressed into the jar file) please help me!
    Any help is wellcome.
    Thanks. Bruno.

    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#210
    http://java.sun.com/products/javawebstart/download-spec.html
    You create a jar file containing JUST the native resources (i.e. the .so file).
    You add a <nativelib > element to the JWS file wrapped in a "<resource os="linux" arch="x86">" tag (I think, not done in some time, check the links above).

Maybe you are looking for

  • After uploading video it develops a stutter

    After I have processed my movie and checked it I upload it to iCloud and it develops a stutter and becomes jumpy and unwatchable. The same thing happens if I upload the video to YouTube. It is not so bad when I share it to iTunes. I use a Panasonic a

  • How to have buttons come in 2 seconds after menu??

    I have a sound effect and animation for the first 2 seconds of the DVD menu. I'd like the buttons to appear after that's done. Is that possible? How?

  • Starting digital edition 2.1

    Hi, I've a problem. After installation successfully the program doesn't start. I get the error-message: "loking for online - help" or "close starting" What must I do, to open it successfully? Thx to the comm. for helping me.

  • Question about crop

    Hello. When i use my crop tool to extend my canvas a bit - I got new areas in white colour. Sadly, but I can't find a way to make all new areas to be black or other colours. Can you please advice me how to manage crop "default" colour? Thank you for

  • Help needed to set up Ports

    Hi, At the advice of the Tmobile tech, am trying to set up this: "In order for IPsec to work, the following ports need to be allowed through the firewall in both directions: UDP port 500 (Internet Key Exchange or "IKE") UDP port 4500 (IPSec/IKE NAT-T