How to extract jar files into  a folder in the local disk and then import?

hai forum,
will any one tell me how should i extract jar files into a location in my project folder and then how to import the class files for further usage?
Thank you .

I will be graeateful if u could explain this a bit.
Do you want to say that i should craete instance of
ZipEntry like this
InputStream is =
jarFile.getInputStream(entry);
File inputFile = new
File("C:\\myclasses.data");
FileInputStream fis=
new FileInputStream(inputFile);No! You need to write the entry using FileOutputStream copying all the bytes of the ZipEntry InputStream to the FileOutputStream.
>
What about adding into a directory?Do i have to
create on dynamically?Yes! You can use File.mkdirs(). For example
                    File ofile = new File("your directory where you will place the zip entries" + zipEntry.getName());
                    ofile.getParentFile().mkdirs();

Similar Messages

  • How TO DEPLOY JAR FILES INTO XI Server using SDM

    Hi XI Gurus,
       im working on adapter development. we have created jar file in NWDS.
       now going ahead to deploy into XI server through SDM.
       can we deploy jar files directly into xiserver through SDM. or it needs to convert to any other formate like EAR, SDA. then how would i convert to SDA.
      i any have clear idea on this... pls throw the ways how to convert........
               JAR File to EAR format
               JAR file to SDA format
               EAR file to SDA format         
       can any one explain the procedure step by step how to convert jar file into deployment archive file in order to succesfully into XI server.
              thanks  i advance. points will be rewarded.
      Regards
      Rajesh

    Hi Rajesh,
    JAR file in itself in not deployable.
    So v need to envelop this jar file into an EAR file and then v deploy this EAR file on SDM.
    Creating Jar
    Inside NWDS --> Windows --> Open perspective --> J2EE Development --> right click on ur proj --> Build EJB Archive
    Converting .EAR file to .SDA
    Converting .EAR file to .SDA
    Regards,
    Prateek

  • How do I bundle files into one folder on my mac OS X version 10.6.8?. I do not see launchpad on my desktop.

    How do I bundle files into one folder on my mac OS X version 10.6.8? I don't have an icon for Launchpad on my desktop.

    Put the files you want on the first page into the folder, and then use subfolders for the subsequent pages. If the process you saw involved Launchpad on a newer OS, it can’t be done on 10.6.8.
    (108795)

  • I plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    i plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    Try restoring from the backup created at the beginning of the sync process:
    Without connecting your phone, open iTunes, go to Preferences, on the Devices tab check "Prevent...from syncing automatically"
    Connect your phone, right-click on the name of your phone when it appears on the left sidebar in iTunes
    Select Restore from backup, choosing your most recent backup to restore from
    Disconnect your phone and confirm that your photos are back
    Go back to iTunes>Preferences>Devices and re-enable automatic syncing.

  • When I create a new project in iMovie and drop clips into it, it plays the first one and then quits right near the end of the second clip.  I have re-started my computer, tried a new project etc, and no luck, does anyone know how to fix this issue?

    When I create a new project in iMovie and drop clips into it, it plays the first one and then quits right near the end of the second clip.  I have re-started my computer, tried a new project etc, and no luck, does anyone know how to fix this issue?

    This is a part of the larger MacBook Pro connectivity issue. There are several related threads dealing with the MBP's networking problems. If your unit is suffering from this type of difficulty, good luck ... (or a long ethernet cable)
    (PS Everybody please make noise on this one so apple comes up with a solution.)
    < Edited by Host >

  • I am not able to transfer emails from outlook 2007 in Windows 8 to outlook 2011 in Mac.  I export .pst file to my hard drive from win 8 and then import in outlook 11 in mac, the folders including subfolders are created but there are hardly one email

    i am not able to transfer emails from outlook 2007 in Windows 8 to outlook 2011 in Mac.  I export .pst file to my hard drive from win 8 and then import in outlook 11 in mac, the folders including subfolders are created but there are hardly one email.  Please help

    Post your question in the MS Mac forums since it's their software you're having issues with:
    http://answers.microsoft.com/en-us/mac

  • How to extract PDF files into the directory the PDF file is located in.

    I use Adobe Acrobat to extract all the pages within a single PDF file to single page PDF files.  However the steps are long, as the path to a directory where i wish to extract is thru the net work and the default location for Adobe is to my C:Drive... So I have to Browse the path to extract to Which can be between 10 and 15 steps depending on the job folders.  Most programs when you extract, the default path is usually where the file location is, with an option to change the path.. makes sense and is very easy.
    So without making a short cut(because the path constantly changes depending on the jobs).  How do I extract directly to the folder that the PDF file is in?   Example, when you extract a zip file, its default location is right there where the zip file is in. Quite simple and logical.

    Thanks Gilad, but that does not make the task easier.  The path always changes as the files are being organized into folders.  Its kind of sad that $400 software can't do what most free ware can do.  Extract itself into the folder it is sitting in.

  • How can i upload more than one single file into a folder in the creative cloud?

    how can i upload e.g. 10 files out of a folder on my desktop in one step into a folder in my creative cloud?

    You can select multiple files in the Windows Explorer dialog using the Ctrl key, or in Mac OS X Finder using the Cmd key. Once you have multiple files selected just click the upload button. Or use drag and drop from the desktop to the browser.
    If you are using Internet Explorer it does not support multiple file upload. This is per design by Microsoft.

  • How to extract JAR file in particular directory

    Hi,
    I am extracting a JAR file(A.jar) in a Makefile
    Now the path of the Makefile is say /home/developer/
    The location of the JAR file is in /opt/tools/mk/A.jar
    I am extracting the jar file as:
    jar xvf /opt/tools/mk/A.jar
    This creates a directory named "A" under /home/developer, since the location of the Makefile is at /home/developer.
    Question) How do I unjar /opt/tools/mk/A.jar under /opt/tools/mk/ itself, irrespective of the location of the Makefile?
    thanks

    jar -?
    Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ...
    Options:
        -c  create new archive
        -t  list table of contents for archive
        -x  extract named (or all) files from archive
        -u  update existing archive
        -v  generate verbose output on standard output
        -f  specify archive file name
        -m  include manifest information from specified manifest file
        -0  store only; use no ZIP compression
        -M  do not create a manifest file for the entries
        -i  generate index information for the specified jar files
        -C  change to the specified directory and include the following fileI'd say you may want to try the -C option

  • How to drag a file into a folder

    hi-this is kind of basic, but could someone please tell me the easiest and quickest way to drag a file [say a Pages document] into a folder. like if you write a draft of an email in Pages, and then you want to stash it in a folder called 'letters'. thanks

    Much simpler to stay in the Finder. You can either drag and drop from one Finder window to another, or within the same Finder window (ie, grab the file, and use one of the shortcuts in your sidebar to navigate to your new folder). You should make sure that "Spring-loaded folders" is turned ON in your Finder preferences. When you hold a file over a folder, wait a short while to have the folder open automatically, or hold down the space bar to open it immediately.
    You can also install FiWi to quickly create two side-by-side Finder windows.
    Of course, you can also use copy (cmd-C) and paste (cmd-V) as an alternative to dragging and dropping files. There's no "cut file" (ie move) as there is in Windows.
    Matt

  • How to deploy jar file into oc4j

    Hi,
    I am new to jdeveloper.
    I deployed a application as .ear file by creating new coneection from the Connection navigator which is having web, ejbs amd client progrms. I dont have any problem with that.
    But for my feature modification on my ejbs or client programs, i want to deploy only its related jar file in the existing application in the server. But when i try to do the same, the client module or ejb module is deploying as new .ear file in to the server insterd of .jar file.
    How to overcome this in jdeveloper?
    Thanfully,
    Satish KC.

    I consider complete EAR deployment as a feature, because you can build self-contained versions, archive them and redeploy them in case of support situations.
    However, if you like to develop in incrementally you can run, test, show your complete application within JDeveloper. No extra deployment is necessary for that.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I want to find a tip for how to copy a file automatically to a folder on an external hard drive when I put that file into a folder on the desktop

    I am trying to find a way to have a folder set up so that when I add to the folder(on the Desktop) a copy of the folder is also updated on an external hard drive. So I can have two copies of the contents of the folder, one on the desktop and one on the hard drive.

  • How to nestle 20+ pages into one "folder" in the vertical left-hand index c

    This question regards the vertical index column on the left hand side of the workspace in an open iWeb program.
    I have a bunch of regular pages (about 20 and growing) that I will link to another single page. That single page will have a bunch of pictures and each picture will be hyperlinked.
    This means that my vertical left hand index will become very very long unless I can get them all into/nestled into one “folder”. Is that possible when dealing with just regular web pages and not photo albums or movie albums?
    I tried at first to use a blog, but the blog puts pages in chronological order, and this project does not require link clicking to be chronological or sequential. People can click wherever they want to click and arrive at a page. Then they can click “Back to the Original Page with all the links and pictures.”
    This is a light-hearted endeavor, not a serious documentary type thing.
    So back to my question: Is it possible for me to nestle all those 20+ pages under that one original map/photo page with all of the photos hyperlinked? Or am I stuck with a long Index now? Or is there some other way I can deal with the one map/photo page and the other pages that the first page links to? I am going to put links on the other pages too, so that people can click where they want and see new/different things at different times.
    Thank you for any help you can share with me......
    Lorna from Southern California
    web.mac.com/lorna6

    If I understand you correctly the answer is no. You want to be able to shorten the list of pages in the left hand pane of iWeb. The only way to next them would be to create a new site and drag some of the files to that site. But that would make them separate from the others. Unless you're willing to do something like that and then on the map photo page link each photo to one of the pages in the other site and manually add a link on those pages back to the map/photo page. A little more work I think than scrolling down to find a page you need to work on.
    I have a web site with about 40 pages. However, each page is a separate site and I use a frame file to link them all together. That's possible. If you were to try that you'd had to make each page a site in iWeb and then follow the workflow in the description below to separate them into individual domain files.
    I use iWebSites to manage multiple sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your original Domain.sites files before starting the splitting process.
    This lets me edit several sites and only republish the one I want.
    Again, it may be easier to just scroll.
    OT

  • How to load .jar files when not specified in the .jnlp file

    Hello,
    We are deploying an application with JWS but due to the nature of this app, we need to download additional jar file only when the user has been authenticated. The jar file(s) we need to download can hardly be predicted (in term of name) and thus cannot be all listed as lazzy resource in the .jnlp file.
    However, we would like to take advantage of the various JWS features relateed to .jar download and cache and would prefer not to reinvent the wheel by implementing our on stuff (i.e. URLClassLoader with caching etc.).
    Any idea, suggestion?
    Thanks in advance.
    Fred.

    How about writing a second jnlp file with the optional jar listed in it and running it only if your user is authenticated?

  • Automatic copy music files in music folder to the data disk storage

    I got the shuffle as a Christmas present last year. It was working fine until today. Once I plugged to shuffle onto my laptop, it automatically copy all the music files in my music folder (my hardisk) to my shuffle. It copies them to my data disk storage, as if I want to back up them or transfer them to another computer. I don't know where to change the setting, as it used to work fine and I didn't change anything since then.
    Anyone has any idea how to fix this? Basically now I can't use my shuffle as the memory stick.

    Yes it is possible, and in fact quite easy.
    Insert the flash drive in your computer and open it so it looks like a window.  Over in iTunes, highlight the tracks you want (or CTRL+A to get a whole playlist) and drag to the open flash drive window.
    If you normally run iTunes in full-scree mode, make it smaller so that you can do the drag.

Maybe you are looking for

  • Sneak Preview Java 04s : what to do with it?

    Hi everyone, I downloaded and installed Sneak Preview 04s full Java edition. I'm a BW consultant, not too experience with Portal, and I can't fin out what to do with this installation. I thought this Java edition would also give me access to an class

  • What is better/newer than SSL3?

    My bank sent me this message: Due to the recently announced POODLE malware, Dollar Bank will turn off access to Online Banking, Cash ANALYZER, loan applications and deposit account opening via our website on October 23, 2014 for visitors utilizing br

  • Slideshows not opening since mountain lion

    Since upgrading to Mountain Lion, when I try to open a slideshow, I just get the pinwheel and the program freezes.  I have to force quit to get out of it.  I tried creating a brand new slide show and the same thing happens when I try to open it.  Any

  • Pop-up with conditions

    HI again everyone! Is it posible when in a numeric field(9 digits allaw) the first entered numbers are 202 a pop-up warning to come up(Please copy to...). Thanks

  • SAP Netweaver slim Edition - Installation problem-local host!!!!!!!

    Trying to run inst file, it gives me the following error message when I specify the localhost. <b>ERROR 2006-02-12 09:23:48 <html>The name of this host is <em>E58AEB3F9A6342E</em> which is more than 13 characters long.<p>This is not supported for SAP