How to add a folder to jar

Hi,
I would like to know how to add a folder so that when extracted the file structure is maintained.
Thanx in advance
-Dani.

And to an existing archive or a new archive?

Similar Messages

  • How to add empty folder in a jar file ?

    Well
    I know how to add files in a jar file but I cannot add empty folder.
    I would like to do this so that when I get back the jar file I can have all the structure of the save main folder.
    I also test that it is possible to do that on line with the "jar" command.
    Does any of you know how to do this programacticaly ?
    Thanks in advance

         JarOutputStream jos = // ...
         jos.putNextEntry(new JarEntry("directory/"));
         jos.closeEntry();
         jos.finish();
         jos.close();on the command line:
    jar -tf <your_jar_file.jar>

  • How to  add a folder in unix directory?

    how to  add a folder in unix directory?
    /usr/zz00/zz/mm/..
    i need one more folder
    /usr/zz00/zz/mm/addfolder/text.txt..

    No way with pure ABAP. Either contact your unix adminstration or create a logical system command in SM69/SM49 which can be called via call function 'SXPG_CALL_SYSTEM'

  • How to add new folder in sap menu visible to all users

    I want to add a new folder in sap menu. i can do it for my user id as it is user specific. I wanna know that how to add a folder so that every user able to see the same i.e irrespective of user-ids.

    Hi Ramya,
    This can be done in SAP menu instead of User Menu, provided all your users are using SAP menu. If a folder is created in User menu it would be visible only to the user. If it is created in SAP menu and if all the users are using the SAP menu then the folder would be visible to all...
    Hope this clarifies your query...
    Reward me points...
    Regards
    Prasanna

  • How to add a folder in email

    How to add folder in email

    You cannot do it from within the mail app on the ipad. You will have to log into your account via the web, and depending on the provider, you can create from there.

  • How to add a file to jar without compression using JarOutputStream

    Hi,
    I just want to know how to add a file without compression to a jar using JarOutputStream. By default the file is compressed when you add it to the JarOutputStream. This option is present when you create a jar using command line mode using the jar tool. Is there something like that in JarOutputStream.
    Thanx in advance.
    -Dani

    Try to use http://java.sun.com/j2se/1.3/docs/api/java/util/zip/ZipOutputStream.html#setLevel(int) method

  • Adobe Reader X Deployment: how to add trusted folder from userprofile?

    Hi,
    We have to deploy Adobe Reader X and Acrobat X by using the Adobe Customization Wizard X.
    There is a function in the Customization Wizard to add the folders, but the main problem is, that we want to add a folder which is located in the userprofile.
    I tried it by using the Windows variable: %USERPROFILE%, but it didn't work.
    Is there another way to integrate this folder?
    Can it be that Adobe provides their own variables? (i.e. [User_Profile])
    Thanks for help!

    Hi,
    We have to deploy Adobe Reader X and Acrobat X by using the Adobe Customization Wizard X.
    There is a function in the Customization Wizard to add the folders, but the main problem is, that we want to add a folder which is located in the userprofile.
    I tried it by using the Windows variable: %USERPROFILE%, but it didn't work.
    Is there another way to integrate this folder?
    Can it be that Adobe provides their own variables? (i.e. [User_Profile])
    Thanks for help!

  • How to add new third party jars into JDev - quick question

    Hi All
    We have some additional jars needed to include for use with our current ADF application.
    These jars are not for ADF components.
    These jars are for API calls to other 3rd application.
    We're using standalone weblogic to run our ADF app.
    How do we include our 3rd party jars in JDev ?
    Do we need to include new paths in standalone WLS to pick up these new 3rd party jars in order for our app to work ?
    Thanks

    You can add libraries to WLS classpath, but this is not good approach if you need to replace them later(because you must restart WLS to pick new version)
    To include jars to ADF deployment, open Model or ViewController project properties and include path(s) in Project Source Paths->Java Source Paths.
    Then edit your deployment profile (right click on application -> Application Properties... ->Deployment -> Your Deployment Profile), go to Application Assembly and mark these libraries(also, for each library you can specify target folder, for example "lib")
    Dario

  • How to add one folder to time machine from an external drive

    Hello,
    I just moved my aperture file and a few folders to my external drive (that is always connected). The files on this drive are not backed up normally via time machine.  I don't want to add the full drive to be backed up, just the folder that has the aperture files in it.   How can I do this?

    Thank you Terence for your help.  I was able to restore my backup from my time machine ext drive to a new 1tb seagate ext drive.  so i felt sort of ok.  but yesterday that older ext drive i used for time machine wouldn't open! i called applecare and they trouble shooted with me and said it's probably a goner and data is probably corrupted.  it's only a few years old and i'm very careful with it.  my husband accidentally dropped my new drive last night -- i know, unbelievable, i was SO upset, poor guy -- but I'm so stressed with all of this.  i have 10 years of photos and videos.  so now i only have the one newer drive with a backup.  i have to buy another one today to backup again so i at least have two backups.  i tried to delete a ton of files last night to free up the 30 gb of space i need to get my full library back on my mac. i have 90gb free and deleted 7 years worth of photos i had on picasa that were in my "pictures" folder and also a ton or random photos and videos i had in that same pictures folder and thought that would give me the 30 gb but it hardly freed up any space at all!  do you know why that is?  all of this stuff is really a pain and really stressful.  thank god i did have a backup in the first place but now i am panicked the one i have left will somehow crash.  especially after my husband dropped the drive lastnight! it didn't fall far and fell onto a wood floor and seems fine, but after my older ext drive crashed yesterday -- and i lost my entire iphoto library a fewweeks ago off my mac -- i feel cursed.  any answers you have would be great. thank you.

  • How to add new folder in Aperture thats been created on hard drive?

    Hey
    This is probably a simple answer, but here it goes.
    I manage all my photos in directories such as this:
    2007
    01 - January
    02 - February
    03 - March
    etc..... however I just added the 2007 foler and all its subfolders to my drive tonight, however I can't sem to figure out how to easily add it to Aperture in order to read from those folders?
    Thanks a lot

    also, you can decide to ignore the import panel entirely, and import the folders by dragging and dropping them in your project list. if you drag multiple folders at once, they will be imported as multiple projects.
    holding the Command and Option keys while doing this will result in a "referenced files" import. By default (without modifiers) the images get "managed" (i.e. copied into database).
    my structure on HD is similar to yours. What I do in AP is that I create a blue folder first, name it 2007, and then drag folders from the mac os finder on that blue folder.
    experiment with this and you'll find that it is much faster, gives more flexibility, and involves less repetitive actions than using the import folder.
    one last thing: this action sees AP generating an error message, but the image that is said "not imported" still is, and all should function properly...
    HTH
    max

  • How to add a Folder inside a Folder ? (non)

    I have tried even going directly to the srf file to do the grouping manually.
    Bear in mind that I have performed this successfully on an existing SAP folder.  But if I tried doing it on a form i've created with the screen painter the results are simply that all folder items group at the same level.
    I've read all the links related to this and come across no real solution.  Is it posible at all?

    I can't tell you how to do it using screenpainter/xml, but how to do it in code... might get you in the right direction. I't all about setting the correct pane-levels.
    A good example in the Client GUI is the BP Accounting TAB with its general and tax tabs inside... Tabs/folders are just normal items in SAP and the pane-from and to on an item is used to tell the GUI what items are where.
    Sample1: CardCode hase panelevel 0-0 (0 being the special panelevel that are always shown)
    Sample2: Telephone 1 is in panelevel 1-1 since it is under the general tab
    Sample3: The Tax-tab under accounting is on pane 9-10 since it need to be shown when both the Account>General tab-data is visible (9) and it's own tax-data (10)
    This is the complete "pane-tree" on BP Master data
    0: Header
       1: General
       3: Contact persons
       7: Addresses
       6: Payment Terms
       8: Payment System
       9-10: Accounting
             9: General
             10: Tax
       4: Properties
       5: Remarks
    To sum it all up, you will need to set you to and from panes in the correct way to create the nesting of the tabs and on each item-pressed on these tabs you need to change the current panelevel

  • How to add a folder at Mail?

    Good morning,
    I would like to add a foder (and defining it's name) in Mail.
    I couldn't find any help in the user manual.
    Thanks for your help
    Roger - Greece

    If the email account is an IMAP one, then in the Mail app at the top of the selection/display list of its current folders there should be an Edit button - tap that and you should be able to create a new folder. If the email account is POP based then unfortunately you can't create new folders (I can't on my old POP account and other people have reported the same thing).

  • How to add a JDBC driver jar to ESB project?

    I am developing an EJB project in JDeveloper 10.1.3.1. I am trying to connect MS SQL Server DB to the ESB. I set up the JDeveloper so it can connect to the MS SQL Server, list the tables&data. I put a DB Adapter using the existing connection to the diagram. When I deploy it to the Oracle AS I am getting oracle.toplink.exceptions.DatabaseException saying that the driver com.microsoft.sqlserver.jdbc.SQLServerDriver was not found. How do I package the JAR to the project so it gets uploaded to the server with the project files? If it is not possible, where should I put the jar so the server can use it?

    To get this working copy the jdbc jar file to the following directory
    %SOA_HOME%\j2ee\home\applib (basic)
    %SOA_HOME%\j2ee\oc4j_soa\applib (advanced)
    If you don't configure your datasources and JNDI names then it will use the connect string from your project. It is always best practice to use the application server connections
    cheers
    James

  • How to add new folder

    Im having trouble adding a new folder to my Ipod. Im clicking the right button at the bottom left of the screen, but it is adding it in the play lists and not on the devices. What should I do?
    Thanks

    Well I could actually add the playlists so that I could name them but I put in another Ipod on the same computer and since I put the first one back in, the option for me to put in my own playlists has gone. Any ideas? thanks

  • How to add project, folder or album in full screen mode

    I love the full screen mode but I do need to go back (F) to "normal" mode for library changes like adding a new album, folder or project.
    All other library functions do work like move projects into folder etc.
    The function is shown in "inspector" (right mouse button) but you can not select the function.
    Is this not supported like the faces and places "button" in full screen mode as i learned reading this forum?

    If you close Firefox while in full screen mode then Firefox should start the next time in full screen mode as well.
    If that doesn't happen the see:
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

Maybe you are looking for

  • How can I insert a table in headnote so it will show on each page?

    I would like to insert a table in the headnote, but I don't know how with this new pages layout. Suggestions? Thank you much

  • How to enable the "update file" button to update the data template

    We have an escalated customer bug that the chinese character does not display correctly on report. We want to update the data template xml file on customer site to test the fix. However, when the customer login using "XML publisher Administrator" res

  • Library cache lock in statspack report

    Hi, We have some production issues on my database from long back. So i had taken snapshot and applied in one of analyzer tool. In the TOP 5 Events they mentioned that library cache lock is 94.46 % , i am afraiding by seeing this number. And in there

  • JEditorPane Autosize in JDK 1.1.8

    Hi, I am using a HTML file in local drive to be displayed using JEditorPane, which is added in JPanel. This is displayed in JDialog. The contents(message) from HTML file are displayed, fine. The problem is - the contents of HTML file vary, but the JD

  • Can't reset password

    Hi, I've change my device to 9320 but now my password is unrecognized then I go to 'forget password', fill new security answer, new password & confirmation but it keep say Bad Request. Thanks