Same source, different jar file sizes

What could be creating this discrepancy in jar file sizes on two machines with exactly the same versions of SDK etc installed.
Machine 1 - obfuscated jar size 148Kb
Source moved to Machine 2 - obfuscated jar size 222Kb
Source moved back to Machine 1, mods made, - obfuscated jar size 143Kb
Source copied to Machine 2, NO mods, - obfuscated jar size 138Kb
I want to retire Machine 1, and in fact Machine 2 is due to be re-purposed as well when my new shiny one arrives but I am worried I won't be able to get my file sizes as small as possible or at least cram as much as possible in so I would like to know what sort of things impact the packaging process.
Thanks
Kathydb

When you sync photos with iTunes it automatically optimizes the photo size for the screen on the device it is syncing it to. Photo Stream also has some of this functionality built into it as well although a full resolution photo will be sent to iPhoto on Mac computers. Photos taken with different devices will also have different file sizes depending on how many megapixels the camera on the device has.

Similar Messages

  • JDev10.1.2: Difference betwn same oracle.jbo.classes in different jar files

    Hello guys, does somebody knows the difference between these two JDeveloper 10.1.2 directories?
    JDEV_HOME/BC4J/lib
    JDEV_HOME/BC4J/jlib
    And more deeply, why are there different jar files both containing classes like oracle.jbo.domain.Number and oracle.jbo.domain.Date? I explain: you can find oracle.jbo.domain.Number in JDEV_HOME/BC4J/lib/bc4jdomorcl.jar and in JDEV_HOME/BC4J/jlib/bc4jdomgnrc.jar ?
    This is very strange.
    I ran into trouble because both oracle.jbo.domain.Number classes where being loaded, I was importing into my project the BC4J Generic Domains library which points to the BC4J/jlib/bc4jdomgnrc.jar, so I took it off of my project and added the BC4J/lib/bc4jdomorcl.jar as an additional path in the classpath because this is the one referenced by the embedded OC4J in the application.xml file.
    Thank you.

    Refer to the section BC4J Runtime Libraries
    If you are using the Oracle type mappings, use bc4jdomorcl.jar. If the application was built using "Java" type mapping, use bc4jdomgnrc.jar which is located in <jdev_install>/bc4j/jlib.
    http://213.35.38.54/otn_hosted_doc/jdeveloper/904preview/packaging_deploying/dbc_pldlibsappsvr.html

  • Different jar files access

    I m facing an unknown problem in my jar file. My manifest file contains-
    Manifest-Version: 1.0
    Class-Path: lib/mysql-connector-java-5.1.5-bin.jar ntools.jar
    Created-By: Tanvir
    Main-Class: Logon
    Yet, in my application a class can't be accessed which is in ntools.jar.If I just put - Class-Path: lib/ntools.jar , then it finds the class.I know that different jar file is separated by space.I did the same thing then why it is not finding classes in one jar but not classes in another jar.

    remove the ntools from the Class-Path entries list.
    it should only contain the external jar

  • [svn:bz-trunk] 19596: Add JGroups 2.11.0 GA source and jar files.

    Revision: 19596
    Revision: 19596
    Author:   [email protected]
    Date:     2011-01-05 08:35:22 -0800 (Wed, 05 Jan 2011)
    Log Message:
    Add JGroups 2.11.0 GA source and jar files.  It requires JDK 1.6.x and up.   Currently it can be only used for runtime and can't be used to build the BlazeDS source, which requires JDK 1.5.x.
    Modified Paths:
        blazeds/trunk/resources/clustering/readme.txt
    Added Paths:
        blazeds/trunk/lib/jgroups-2.11.0.GA.jar
        blazeds/trunk/resources/clustering/JGroups-2.11.0.GA.src.zip

    Revision: 19596
    Revision: 19596
    Author:   [email protected]
    Date:     2011-01-05 08:35:22 -0800 (Wed, 05 Jan 2011)
    Log Message:
    Add JGroups 2.11.0 GA source and jar files.  It requires JDK 1.6.x and up.   Currently it can be only used for runtime and can't be used to build the BlazeDS source, which requires JDK 1.5.x.
    Modified Paths:
        blazeds/trunk/resources/clustering/readme.txt
    Added Paths:
        blazeds/trunk/lib/jgroups-2.11.0.GA.jar
        blazeds/trunk/resources/clustering/JGroups-2.11.0.GA.src.zip

  • Can I deploy the entity bean in different jar files?

    I have an application EAR, which contains several JARs. I have an entity bean A that has relationships with 2 other different entity beans B and C in the same DB. Now, I have to deploy this entity A together with B in AB.jar, and A with C in AC.jar. Both AB.jar and AC.jar are modules of the same application EAR file. They all use the same data sources to the same database, and named by different <ejb-name>.
    I have no problem with deploying the app to WebLogic 8.1. But the JSP page accessing entity A got errors. Sometime, it got error complaining that the container-generated ejbFindAccount mehtod is abstract.
    My questions are,
    Can an entity bean be defined twice in 2 different jars?
    When container load AB.jar and AC.jar, does it generate the finder methods twice?
    I guess there are some name conflicts going on here. What should I do to avoid it?
    Any comments are very much appreciated.

    Thanks for your answer, but how can I use it in connection with relationships?
    <!-- ********************************************************************** -->
    <!-- Relationship: View to FrameworkUser                                             -->
    <!-- ********************************************************************** -->
    <ejb-relation id="View-FrameworkUser">
         <description></description>
         <ejb-relation-name>View-FrameworkUser</ejb-relation-name>
         <ejb-relationship-role>
              <ejb-relationship-role-name>Views-have-FrameworkUser</ejb-relationship-role-name>
              <multiplicity>Many</multiplicity>
              <relationship-role-source>
                   <ejb-name>View</ejb-name>
              </relationship-role-source>
              <cmr-field>
                   <cmr-field-name>frameworkUser</cmr-field-name><!-#- getter/setter -#->
                   <cmr-field-type>java.util.Collection</cmr-field-type>
              </cmr-field>
         </ejb-relationship-role>
         <!-#- *************** -#->
         <ejb-relationship-role>
              <ejb-relationship-role-name>FrameworkUser-has-Views</ejb-relationship-role-name>
              <multiplicity>One</multiplicity>
              <relationship-role-source>
                   <!-#- *******REFERENCE******** -#->
                   <ejb-name>ejb_foo_jar2_ejb.jar#FrameworkUser</ejb-name>
                   <!-#- *******REFERENCE******** -#->
              </relationship-role-source>
         </ejb-relationship-role>
    </ejb-relation>
    ...this obviously doesn't work...
    Do I have to write a new <entity> where I define the referenced entity?

  • Different photo file sizes when copied back from external HD

    I backed up some photos to an external HD (80GB, same size as in my iMac at the time), with Mac OS Standard format, under Tiger. The internal HD crashed, taking much unbacked-up data with it to the digital beyond.
    Now with my new Leopard iMac (and wisdom acquired by experience), I have noticed a different file size on the different drives after copying the photos back.
    Other posts have pointed out differences in memory allocation / block size as the culprits, however, can that make the large difference seen in my case?
    Example 1 is a Tiff file of 8.2 MB on the external HD, which shrinks to 6,8 MB when copied to the 500 GB iMac drive (taken from the Get Info window)
    Example 2 is a JPEG which shrinks from 1.2 MB to 552 KB when copied over.
    Examples 1 & 2 also shrank to 6.8 MB and 576 KB respectively when copied from the 80GB external drive to another, 320GB external FAT32 drive.
    So my question is: Am I somehow losing something with the shrinking files? Does memory allocation/block size difference make that big a difference?
    Thanks for your help.

    I think I ought to mention that I also have a new laptop and have experienced file sharing permission issues with some applications. Might this be part of the problem? (Although everything seems to be properly owned!)

  • Same container, different ear files, remote lookup failing!

    I'm having severe problems with my ears! I used to have all my EJBs in one ear file and everything worked hunky dory. Now I have separated out various components into their own ear files as they may be deployed into a separate box and also this eases group development. My problem is that some (most) of the remote lookups don't work. I'm getting a Class cast exception when i use the narrow() method.
    I have tried all the methods I can think of now and I'm getting desperate! Initially when all the beans were in the same ear file I used the coded reference for the lookup. This did not work across separate ear files so I replaces the coded reference in the lookup() method to the JNDI name. Now this works for some lookups but not others. Invariably a client application running in the container in a separate ear will work no problem. However a session bean using the same code as the client can not succeed in referencing another bean.
    I'm baffled here because the lookup itself appears to succeed (if I but a garbage name in the lookup method it returns "name not found"). The error I'm getting is class cast exception! Occasionally though it does work - by that I mean it works for some inter-ear references but not others ie it's not intermittant.
    Can anyone shed some light on the correct/best method to lookup a remote reference to a EJB from an EJB living in a different ear file in the same container?

    Found the problem!
    I was using jdk 1.3.0_02 when I should have been using
    jdk 1.3.1_01
    painful...

  • Same data essentially - significant file size differences

    I have 13 separate .aif files. I've decided I should have Normalized them. As they will be played as a CD I thought to create a huge new file copy/pasting the contents of each separate into the new. No problem. So why does is the size of the new file double the total of the individual files? No conversion or any other thing done to the files - just copy/paste.
    I hate mysteries.
    Thanks,
    tim

    ...the TV stations have accepted them without a problem, I'm just concerned I'm doing something wrong and missing something.
    So, I tried with no limits and the file size was huge.
    Any recommendation for where that should be set?
    Normally, broadcasters will specify a target bitrate
    for submitted files in their spec sheet.
    Like this:
    SD/HD Master File Specifications - Extreme Reach
    http://www.extremereach.com/pdf/SD-HD-Master-File-Specs.pdf
    And this:
    DG - File-Based content submission
    https://spotcentral.dgit.com/docs/HDMSD_OneSheet.pdf
    I would check there.

  • Different EAR file size for 2 exactly the same set of source codes

    Hi All,
    I have 2 exactly the same sets of source codes for my application that were compiled in 2 different environment (say SIT and UAT; both using the same jdk versions), is it possible that the EAR files after build will be different in size too?
    Can you suggest any online reading materials that I can read regarding this?
    Thank you very much
    Eddie

    Hi Arun,
    Thanks for the answer.
    I already did a comparison of the 2 application, they are exactly the same (i only copied the source including the jars from PROD to UAT). I also did a comparison between the 2 EAR files generated (exploded the EAR file and compare each of the files), they are the same. My aim actually is to compile the application in Machine1 and deploy it in Machine2, I am just puzzled why the 2 EAR files generated by the 2 machines are different in size. Does it has something to do with the compression and compiling?
    Thanks,
    Eddie

  • Different movie file sizes - different videos??

    I downloaded the Flex 4 In a Week videos for offline viewing a few months ago.
    Today I noticed that, in conjunction with an overhaul of the Flex In A Week web page, the movie files posted therein have changed in size.  They are several megs smaller than the corresponding videos I downloaded a few months ago.  Have the videos changed, or have they only been compressed more for faster download?
    Thanks

    Hi Gusetva,
    All of the content for the videos are the same.  Looks like they just compressed the files.

  • Recovering a datafile with different initial file size

    Sorry for this post. no need

    OS? Database version? Noarchivelog or archivelog? At least in the latter case (archivelog) DDL commands like increasing a datafile are recorded,too.
    Werner

  • How to sign multiple jar files using the same certificate..?

    hi,
    I want to run my application using Java Web Start.. i am using around 16 different jar files out of which around 13 are 3rd party component jars. I want to sign these jars using the same certifcate..., i am using the follwing code to sign the jars:
    (for the jar file ischeduler.jar)
    keytool -genkey -alias signFiles91 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischeduler.jar ischeduler.jar signFiles91
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles91 -file ischeduler.cer
    keytool -import -alias DCA2 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    (for the jar file ischedulerclient.jar)
    keytool -genkey -alias signFiles92 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischedulerclient.jar ischedulerclient.jar signFiles92
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles92 -file ischeduler.cer
    keytool -import -alias DCA3 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    but when i use the above signed jars in my application i get an error saying:
    "jars not signed by the same certificate"
    can someone plz tel me wher is the error....thanx
    andy

    Well for mulitple signing of jar files you can use ANT tool. Its easier and faster.
    Regarding the present problem -- hmm.. well it looks like you are using 2 different alias names for signing the jar file. Try using the same alias name and that might solve your problem.
    regards
    Saby

  • Multiple jar files from different locations

    Hello,
    I am having an applet that access code from two different jar files. Of them one is a common jar file for many applets. So I couldn't place it in the local dir as that of the applet's html. I am not using any web server.
         Just to give you a feel of it :
         <PARAM NAME = archive VALUE = "DVApplet.jar,DVVP.jar" > are the jar files my applet is dependant on. But DVVP.jar has to be accessed from a dir different from local dir.
         Will be glad if someone can throw some light on accessing different jar files from different dirs.
         Thanks for your time.
    Regards,
    Anantha

    [url=
    http://forum.java.sun.com/thread.jsp?forum=421&thread=425724&tstart=0&trange=100
    ]This question is a bit similar
    You can use a class loader to do such things.

  • Double .jar files

    Hi,
    I have a problem while trying connection the cloudscape 10.1 database.
    For the connection a derby.jar file is required. i have include the file and I can connect the database via the class code. but when i try to connect by a jsp file, i get an error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
         org.apache.jsp.Controller_jsp._jspService(Controller_jsp.java:68)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    java.lang.ExceptionInInitializerError
         java.lang.Class.forName0(Native Method)
         java.lang.Class.forName(Class.java:164)
         PRM.Database.openDatabaseConnection(Database.java:26)
         PRM.Controller.(Controller.java:14)
         org.apache.jsp.Controller_jsp._jspService(Controller_jsp.java:47)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    Sun-Java-System/Application-Server
    when I debug I get an other error:
    Sealing violation loading org.apache.derby.jdbc.InternalDriver : Package org.apache.derby.jdbc is sealed
    According to an IBM site this means that I have 2 different derby.jar files
    The sealed jar error indicates that you are trying to load classes from the same package in two different jar files. (quote from the site)
    http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13764581&cat=19&thread=98729&treeDisplayType=threadmode1&forum=370#13764581
    My classpath =
    "/C:/Program Files/Sun/jstudio_ent8/AppServ8.1UR2/domains/domain1/applications/j2ee-modules/BigTest2/WEB-INF/classes/;/C:/Program Files/Sun/jstudio_ent8/AppServ8.1UR2/domains/domain1/applications/j2ee-modules/BigTest2/WEB-INF/lib/derby.jar;C:/Program Files/Sun/jstudio_ent8/AppServ8.1UR2/domains/domain1/generated/ejb/j2ee-modules/BigTest2/;"
    The 2 locations ofthe derby.jar files are:
    C:\Program Files\Sun\jstudio_ent8\AppServ8.1UR2\domains\domain1\applications\j2ee-modules\BigTest2\WEB-INF\lib
    and
    C:\Documents and Settings\Administrator\BigTest2\build\web\WEB-INF\lib
    deleting one isn't a option, a new derby.jar will be placed back while compiling..
    What to do?

    Thanks but I've used that tutorial and others to learn how to make the jar file executable and its working if i use "java -jar hello.jar" at the command line.
    Unfortunatley i was messing around with the 'open with' command on the jar file trying to fix it and i've made it associated with some html help thing., and i have no idea how to unasociate it.
    Anyone know any way i can remove all associations with it?

  • JAR files just won´t run, multiple systems, JRE & JDK installed.

    Hi!
    I´ve been looking on many different places for an answer for this issue:
    I have to run different JAR files for applications, one is from Apache ActiveMQ, and the other is a hash calculating app. I´ve read on many topics that if you get error "Failed to load Main-Class" when running a JAR, the problem is how the JAR was packed (MANIFEST). Well, I find highly unlikely that two different JARs, from different sources, are wrongly packed. Also, I´ve installed JRE, JDK and even Java EE, on MS Server 2003 and on Windows 7 (on this last one only JRE), and no JAR runs. I´ve tried declaring PATH and JAVA_HOME environment variables... no use. Can anyone help me solve my problem?

    Hi,
    You might want to look in your control panel for 'Java' icon. It should give you an option to enable java plugin into your browser. Let me know if you still face the issue.
    Thanks!

Maybe you are looking for