Setting the JAR compression Level from a .DEPLOY file

I am trying to find a straightforward method to use the best compression level possible for the jar files created from JDeveloper (10.1.3). I do have the "Compressed" checkbox checked.
Currently it is creating Jar files that are not compressed at the best level possible, (the files it creates are about 8 megs). If I open up the jar file in an external compression tool, and then re-compress it as a Jar, I am able to get a file almost half the size... (4-5 megs). And yes, this jar file still works flawlessly in all of our environments. (it is used as a webstart file)
Is there any way to adjust the compression level that JDeveloper uses to compress the jar?
Thanks,
Mike Hess

Hi Mike,
I had a look at the code, and unfortunately there seems to be no way to set the compression level. It's using a ZipOutputStream with the default compression level, and deployment does not expose any user accessible way to override this (I was hoping to find some kind of "hidden" setting, but no joy).
I have filed bug 4567053 to track this (should be visible on metalink within around 24 hours). In the mean time, perhaps using Ant or External Tools is an option? You could probably use either to essentially post process the jar in the way you're manually doing it now if the initial assembly of the jar performed by the deployment feature is tricky to capture in a build file.
Thanks,
Brian

Similar Messages

  • How to Set the Transaction Isolation Level in WebLogic?

    Is there a way to set the transaction isolation level in WebLogic 9.2 or WebLogic 10?
    For an example say, we have an application which is supported for several database platforms. Without setting the transaction isolation level in DBMS level, is there a way to specify this in WebLogic to make it common for all the DBMS type?
    And I found a way to change the transaction isolation level in WebSphere application server using a property called webSphereDefaultIsolationLevel.
    [url http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21224492]http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21224492
    Is there a way to do the same thing in WebLogic application server 9.2 or 10?

    Anuradha W wrote:
    That means, currently the only way tospecify the transaction level is through
    weblogic-ejb-jar.xml deployment descriptor?
    for WLS-generated code, yes.Somewhat related to this question, we have written a standalone testcase to reproduce this issue we have been having. Basically, the issue is that even though we configure the isolation level to a non-default one in the deployment descriptor, the connections returned by the datasource seem to be having the default (which is Read Committed). The DBMS is DB2.
    weblogic-ejb-jar.xml has the following set:
    <isolation-level>TransactionRepeatableRead</isolation-level>
    And we printed the isolation level of the connection returned from a method in the EJB, but the isolation level is still the default. I can share the code to reproduce the problem if you want to take a look at it. Please let me know how I can get that across to you.
    Thanks,
    AnuradhaIf you are using our JDBC driver for DB2, or can switch to it,
    just for a test, there is some debug I'd like from you.
    Joe

  • Setting the property "Cache Level" of the pcd object to "None".

    Hi all
    I have an EP 6.0 on NW04 SPS 17. I need to solve a problem and found note 960975. My question is, how could we change the setting the property "Cache Level" of the pcd object to "None"? Where should I go? Is it on the NWA, Visual Admin, Configtool or somewhere else?
    Many thanks before.
    Regards
    Agoes
    Message was edited by:
            Agoes Boedi Poerwanto

    Hi Agoes,
    By using the tool Support Desk -> Portal Content Directory -> PCD Administration you can do this. Please note that this tool should only be used in debugging situations.
    There is a new section "Release a Unit from the cache cluster wide" in this tool. With this new functionality, you can remove an object from the cache on all nodes in the cluster. If the object is still in use, it will be reread immediately from the database
    Releasing the entire PCD cache can severely affect performance. Hence, if there are inconsistencies suspected with a single object, e.g. a role or an iview, the new section "Release a Unit from the cache cluster wide" can be used to evict the given object from the cache on all nodes in the cluster.
    Cheers,
    shyam

  • How can I set the microphone input level?

    How can I set the microphone input level?

    It would be best to use the standard windows mixer "sndvol32.exe" (in the windows directory) and control it with the System Exec.vi from the Communication palette.
    You may want to look at the following discussion thread, too:
    how to control the microphone volume input via LabView
    How Can I Record Sound in LabVIEW from Sources other than the Microphone?
    Zvezdana S.

  • How do you set the original outbound message from MSG_WAIT_ACK to MSG_COMPLETE ?

    We are using B2B & OSB to send out messages via eBMS protocol
    So basically this are the two use cases
    1) EBusiness Suite => B2B => OSB=> Customer for the outbound Shipment Notices
    2) EBusiness Suite <= B2B <= OSB<= Customer for the Inbound acknowledgement
    We are able to use standard B2B functionality to send out the messages using eBMS with https and client certificates
    On the way back from the customer, we are using OSB that gets the raw data and the body gets sent to B2B
    On the outgoing part a message gets created in B2B and is at MSG_WAIT_ACK
    When the acknowledgement comes in, it comes as a seperate messgae in B2B and is at MSG_COMPLETE
    How do you set the original outbound message from MSG_WAIT_ACK to MSG_COMPLETE?
    We use JMS and have played around with jca.jms.JMSProperty.INREPLYTO_MSG_ID but that is not propagating to REFER_TO_MESSAGE_ID in B2B_BUSINESS_MESSAGE table
    I tried using jca.jms.JMSProperty.CONVERSATION_ID as well but no luck
    Any response is highly appreciated!

    Are you asking about your own JavaMail code or about somebody else's web-based mail agent?
    If it's the latter (which is what it sounds like) then you find the checkbox in the preferences configuration, or whatever they call it, which says "Include original message in reply", or something like that. If such a thing exists, that is. If you're thinking that the e-mail message controls how their code formats replies to it, that's not how it works.
    Even Outlook lets you configure how replies are formatted, the only difference is that the Outlook default is to include the original message and your web-based agent's default is to not include it.

  • How to get the Minum Grade level from the view cluster table V_T710CL_B

    Hi Guys,
    I want to fetch the Minum Grade level from the view cluster table V_T710CL_B
    kindly help me
    Regards
    Rusidar.

    HI Siggi,
    Thank you for your reply..
    I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
    How can I use the Fields from the that table.?
    What can I do now, can you please explain me about this point.
    Waiting for your reply.
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh

  • How to calculate the number of vowels from a txt file. Pls give me a hand!!

    Guys! How do i calculate the number of vowels from a txt file? I have to create a program to count the number of words, sentence, and vowels. So far I had managed to count the number of words. Now I need help on counting sentence and vowels! Pls give me a hand guys!

    I first have to read from the file not the string.I
    know how to read from a file. Now the problem ishow
    to compare a character from a txt file!You fail to understand, that you have read the data
    from the file into a string. Now loop over all
    characters in the string. Forget about the file.
    KajOr forget the scanners just as others have told you. Just read the file character by character using a FileReader.
    Kaj

  • How to set the maximum heap size on a deployed application?

    I�m running a fairly large java application and am getting java.lang.OutOfMemoryError. I could increase the heap size in my development environment to eliminate this error. However, I don�t know how to set this in a deployed application. We are currently using ant to build our software.
    Another question, when I execute a statement such as java �Xmx512M �cp app.jar. Is it correct to say that the application in app.jar will use to a maximum of 512MB of memory when running?
    Thank you everyone for your help!

    But first, when you say "a deployed environment" do you mean an executable .jar file? This is what I'm using.The term "deploy" is commonly used to refer to deploying an ear file or a war file on an application server.
    I would assume that there is some entry you can include in the .jar's
    Manifest.mf file to specify the maximum memory, but I can't find an example of the entry. <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6197671"></a>

  • How to set the classpath and path from the jsp to call  java class function

    Hi Exprets,
    I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
    If any one know how to achieve it, please reply as soon as possible.
    thanks in advance,
    swapna soni.

    It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
    1. How costly is the query retrieving the data from the database?
    If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
    2. Are there chances for the data to become stale within a session?
    In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
    3. How many data sets does the session already holds?
    If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
    4. Does the server employ some kind of caching mechanism?
    Using session cache can definitely improve performance.
    You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
    Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
    Thanks,
    Shakti

  • Outputting to tape - setting the right audio level on the camera?

    Hey there,
    I'm using FCP 4.5 on OS 10.4 on a 1.8gHZ Powermac.
    I'm recording a mini-DV tape to be played in a theatre. I think I'm setting the reference tone to around 18dbs. However, I'm outputting the tape through a consumer camera.
    My question is, do I have to worry about setting the audio levels on the camera to reflect the reference tone of the sequence (ie the basic sound level of the sequence)? I'm not sure the camera even has that function - is it more something that needs attention on a pro deck?
    Any advice here would be much appreciated!
    Best
    Richard O'Sullivan
    UK

    In your scenario, the only thing you have to worry about during recording is that your audio level is below 0 dB (-12 dB is always a good level). Anything above 0 dB is pretty much unusable.
    If in doubt, its always better to record softer than louder.
    -Alexi

  • How to set the size of popups from KM Navigation Iview

    Hello guys
    Does any of you know how I can set the size of the window that pops up when you click on a resource/file in a KM navigation iview?
    I have tried to enter "width=100,height=100" (without the quotes) in the Window Features property of the KM Navigation Iview, but it does not influence the size of the popups.
    Any suggestions to what could be wrong? Or is it not possible at all to control the size of that popup?
    Kind regards,
    Martin

    Hi,
    I cheched yesterday if I could find the command, sorry I couldn't.
    I also realized that the layout generates html link tags (ie. <a />) for the resource links, no javascript open link functions (ie. window.open), wich doesn't alowed (as far as I know) to give size to the pop-up window.
    So to make the link of the resource (gived by the <b>displayname(contectlink)</b> property set) I think you would have to <i>create (develop)</i> the layout, so the link will be rendered with window_size.
    You have other option, you can take off the "<i>contentLink</i>" setting. and add the <b>download</b> command, so the user who want to open / save the document can click on this command and do it in their PC.
    I.E, Create a copy of the <b>download</b>, and add this to the Collection render displayed porpeties:
    rnd:command(command=Z_download/style=link)
    You ca also use and icon to represent the download (you can set that icon in the command)
    I.E, rnd:command(command=Z_download_icon/style=icon)
    This last options represents a problem with the km-only-read content like xml files generaded by xml forms, it can only be readed in the km-portal.
    I hope this might help you.
    Best regards,
    Jorge M.

  • Unable to manually set the BW request status from hanged yellow state

    Hi All,
    We were running a BW upload when it failed due to some ABAP dump. The request remained in the status yellow.
    We tried to manually set the status to red or green in RSA1--> manage (infoprovider)
    This did not allow me to reset the status there.
    I searched the SDN and found this blog: http://scn.sap.com/community/data-warehousing/netweaver-bw/blog/2013/10/23/deleting-dtp-requests-when-the-dtp-step-is-hanged
    But in our case the table : RSBKREQUEST shows "USTATE" and "TSTATE as "0"(zero).  I can reset the status only when it shows 5. So running RSBM_GUI_CHANGE_USTATE in SE37 to reset the status to "0" (zero) is not an option here.
    Iam sure others would have come across this situation before. If you could throw some light on how to reset the BW request status to RED or Green so that I can restart the load again.
    Your help is really appreciated.
    Thanks
    Manmath

    Hi,
    please check the below tables have your DTP request ID.
    Note: Be aware the deleting the request form the data base tables
    RSBKREQUEST
    RSREQDONE,
    RSREQICODS,
    RSICCONT
    Thanks,
    Phani.

  • Assigning letters of the alphabet to characters from a .txt file

    To say in advance, I am relatively new to java, and really have trouble wrapping my mind around some of these things sometimes, so bear with me if I sound like Im rambling or don't know what I'm talking about. What Im trying to do is basically get some input from the user, read from a file of letters (one letter per line) in the order that they should be assigned to the alphabet. So the list starts off like this (parenthesis are just for example and are not in the file):
    y (a)
    7 (b)
    z (c)
    x (d)
    c (e)
    o (f)
    5 (g)
    4 (h)
    j (i)
    r (j)
    If the user types in "abe", I need to find a way for the system to translate that to "y7c". Im also looking to do this the opposite way, so the user types in "y7c" and the output is "abe". I've got it separated so that you type in "translate" to convert normal text to the code, and "convert" to start the process change the code to normal text.
    Its the actual translating and converting where Im stuck. Heres my all my code (not all of it is mine, but for the most part it is):
    public class cypher1 {
         static Scanner query = new Scanner(System.in);
         String alpha[]; {
                   alpha = new String[26];
                   alpha[0]= "a";
                   alpha[1]= "b";
                   alpha[2]= "c";
                   alpha[3]= "d";
                   alpha[4]= "e";
                   alpha[5]= "f";
                   alpha[6]= "g";
                   alpha[7]= "h";
                   alpha[8]= "i";
                   alpha[9]= "j";
                   alpha[10]= "k";
                   alpha[11]= "l";
                   alpha[12]= "m";
                   alpha[13]= "n";
                   alpha[14]= "o";
                   alpha[15]= "p";
                   alpha[16]= "q";
                   alpha[17]= "r";
                   alpha[18]= "s";
                   alpha[19]= "t";
                   alpha[20]= "u";
                   alpha[21]= "v";
                   alpha[22]= "w";
                   alpha[23]= "x";
                   alpha[24]= "y";
                   alpha[25]= "z";
         int num[]; {
              num= new int[9];
              num[0]= 1;
              num[1]= 2;
              num[2]= 3;
              num[3]= 4;
              num[4]= 5;
              num[5]= 6;
              num[6]= 7;
              num[7]= 8;
              num[8]= 9;
              num[9]= 0;     
         public static void main(String[] args) {
         try {
              FileInputStream fstream = new FileInputStream("C:\\Documents and Settings\\HP_Administrator\\workspace\\Cypher\\Cypher.txt");
              DataInputStream in = new DataInputStream(fstream);
                   BufferedReader br = new BufferedReader(new InputStreamReader(in));
              String strLine;
              while ((strLine = br.readLine()) != null) {
              System.out.println("Enter 'translate' or 'convert'");
              in.close();
         } catch (Exception e) {
              System.err.println("Error: " +e.getMessage());
         String input = query.nextLine();
         if (input.equals("translate")) {
              System.out.println("You chose to Translate");
              String transTxt;
              System.out.println("Enter text to translate: ");
              transTxt = query.nextLine();
              String[] newStringArray = new String[transTxt.length()];
              for(int i = 0;i < transTxt.length();i++){
                 newStringArray[i] = transTxt.substring(i, i+1);
              if (input.equals("convert")) {
                   System.out.println("You chose to convert");
                   String conTxt;
                   System.out.println("Enter text to convert: ");
                   conTxt = query.nextLine();
                   String[] newStringArray = new String[conTxt.length()];
                   for(int i = 0;i < conTxt.length();i++){
                      newStringArray[i] = conTxt.substring(i, i+1); 
    }I've got the code from the "cypher" file read, but Im thinking I might run across some issues since the code that reads from the file is not mine, and may not be exactly what I need. But my main question is how do I match each character from the input with its other character from the file? It's there that I am completely lost. I don't even have a clue how to start that.
    Any advice at all would be amazing!

    Cypher220 wrote:
    Any advice at all would be amazing!First, I agree with Kevin that Maps (especially HashMaps) would probably be ideal but, assuming you're not familiar with them just yet and want to use arrays, some pointers:
    1. Since your translator is character-based, use arrays of characters (ie, char or Character), not Strings. For example, your 'alpha' array could be set up with:
    private char[] alpha = "abcdefghijklmnopqrstuvwxyz".toCharArray();Characters can be extracted from Strings using [String.charAt()|http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/lang/String.html#charAt%28int%29].
    2. Finding characters will be much quicker if the array is sorted. Have a look at the Arrays class for some useful methods.
    3. Decide what you want to do if the supplied string contains an invalid character. Common practice is to throw an Exception, but you might want to display a message and get the user to re-enter.
    4. You use the terms "translate" and "convert". I'd suggest "encode" and "decode" would be more explicit to a user.
    5. I'm not quite sure what your 'num' array is meant to do. If numbers are included in your code, then they should be included in your 'alpha' array (which makes the name a bit misleading).
    6. You don't appear to be encoding spaces. Is this what you want?
    7. You need a way of associating a character in one array with its corresponding character in the other. One way to do that would be to create a nested class:
    private static class AssociatedCharacter {
       private char c;
       private int associatedIndex;
    }and then set up arrays of 'AssociatedCharacters'. An alternative is to set up an array of indexes for each array of characters, viz:
    private char[] alpha = "abcdefghijklmnopqrstuvwxyz".toCharArray();
    private char[] encoded = new char[alpha.length]; // load with your "encoded" characters
    private int[] alpha2encoded = new int[alpha.length];and then load it with the index that corresponds to it's encoded version in the other array. Obviously, you'll need an 'encoded2alpha' to go the other way, and it may be a bit more difficult since 'encoded' should be sorted too.
    HIH
    Winston

  • What about setting the page numbering on a bunch of files that are used in multiple Bookfiles?

    I have an FM 10 bookfile called  BookfileA with 20 chapters. In chapter 1, I set the chapter numbering to start at 1 and the page numbering to start at 1. In chapters 2 through 20, I set the chapter numbering and the page numbering to increment from the previous chapter. So far, so good, but here's the problem. .....
    In BookfileB, chapter 1 is a different file, and the original chapter 1 is moved to chapter 2. But BookfileB's chapter 2 is still self-resetting its chapter and page numbering to 1.
    Because of the unusual fact that BookfileB has an extra chapter, do I have to monkey with the chapter numbering every time I want to generate one variant or the other? Is there something about numbering that I don't realize?

    > You're still using the Book settings to specify how the file is to behave with that option ...
    True enough.
    [*]RFF is likely the optimal setting for most users, who either don't have multiple Book files, or do, but use a consistent numbering scheme for all (our case).
    If RFF is not selected, and the Book and component file Document Numbering settings don't match, FM complains, vaguely. It's a pain to chase down why. And in our experience, if RFF is not set, the Book and component file numbering can get desynchronized by FM crashes, so what was working all of a sudden does not.

  • System keeps re-setting the default app to Preview for iWork files.

    Hello.
    I've scoured the internet for a solution to this problem, but can't find one.  The problem applies to Numbers, Pages and Keynote, and I am putting this post in the forum for each.  I shall explain it using a Numbers file as an example.
    For three or four years, I've had a file that was created in Numbers to be opened in Numbers; it's a spreadsheet that I update with every transaction of my bank account.
    Until about a week ago, the file would always open in Numbers, its default application, and then the file kept opening in Preview instead of in Numbers.  I checked the 'Get Info' panel and found that its default application was Preview.  This was strange, so I changed it to Numbers.  When I opened the file the next day, it again opened in Preview, and I found again that Preview was set as its default app.  This time, I set Numbers as the default app by right-clicking on the file, selecting 'Open With', and Numbers wasn't on the list, so I went to 'Other...', and in the 'Choose Application' window, navigated to the Numbers app, selected it and activated the 'Always Open With' option.
    As you would expect, the file then opens in Numbers.  However, whenever the computer has been off and I have logged in again, the default app for the file has reverted to Preview.
    The only thing I can think of that might have a bearing on this problem is a recent App Store purchase.  I bought Numbers on an iWork '09 disk back in 2008/9, but about a week ago decided to uninstall the iWork apps with AppZapper and buy them from the App Store (I just like to have the App Store as the source of my apps, and I had some money to spare).  I can’t see why this would cause the problem, but the installation of these apps and the start of the problem seem to co-incide.
    I wondered if the problem could be solved by re-creating my spreadsheet in a new Numbers file, so I opened Numbers, selected a blank worksheet and pasted the spreadsheet from the original file into this new one, but it made no difference: the next time I logged into my system, Preview was the default app for the new file as well.  The problem persists even with new files created in Numbers, Pages or Keynote that are unconnected with older files and after the App Store purchases.
    I would be grateful for any advice the community can offer.
    Thank you.

    Hello again.
    I followed your advice and created another user account, and in that one, Numbers, not Preview, was the default app for my Numbers file.  Logging back into my original account, I deleted the com.apple.LaunchServices.plist file, and for good measure, the com.apple.LaunchServices.plist.lockfile as well, and reset Numbers as the default app for my Numbers file.
    I restarted the system, but found that Preview was now the default app for the file.  Perhaps the .plist file needed a second restarting of the system, so I set the default app for the file to Numbers again.  I also put Pages, Numbers and Keynote into a new folder called iWork '09, as they used to be before I replaced my shop-bought iWork disk installations with the same apps bought form the App Store.  I don't know if this made a difference.  I restarted the system and, this time, the default app was Numbers.
    Pages and Keynote are also now the default apps for files created by them.
    You have been very helpful and I appreciate it.  Thank you.

Maybe you are looking for

  • Help In Report Format like MCBA POP UP  Information

    Hi,            Please help me  for the Function module or sample report like MCBA report like if we click the amount displays a pop up and another report content is displayed please help and suggest Regards ASHOK K

  • No automatic identifier by Indesign CS5.5

    When leaving the export field 'Unique Identifier' blank it's not automatically filled in by Indesign. I looked in the .opf and only got: <dc:identifier id="bookid"></dc:identifier> What is the problem here?

  • How to Disable the Process Header, collapsible Area, and Process Warning Bar from Contacts Form of CRM 2013

    Folks, How to Disable the Process Header, collapsible Area, and Process Warning Bar from Contacts Form of CRM 2013 Thank you.

  • Alignment of small images

    Hello everybody, I have a problem while trying to align small pictures in the text. Id like to insert small buttons in the text, as if they were text characters (see http://img25.imageshack.us/img25/4169/correctalignment.jpg ) Now the text overwrites

  • Bundle Installation not working

    Have just started to deploy ZLM 7.2.1 and its not going so well. Client is RHEL4-WS I created a trial RPM 'simple-test' , created a bundle (Simple Test Bundle) and assigned it to a workstation (sa-aifs224). So far so good, the rpm got installed. Next