java - How to update the JAR file with original settings? -


i'm trying update kitchen.jar file, refuses work after update. here's did:

$ jar xf kitchen.jar $ jar uf kitchen.jar com/package/toster.class 

all looks good. opendiff (as jar tf) shows no difference, file size 1008 bytes different. binary compare shows 700 differences. , jar doesn't work more.

as can see did not change files, did extraction , updated jar file original untouched class file.

i've seen similar question on so, did not answer it, structure not changed.

the original manifest has this:

created-by: 1.7.0_05-b05 (oracle corporation) 

while have:

$ javac -version javac 1.7.0_17 

have (however not sure if relevant) jar file i'm trying modify part of eclipse ide plugin.

i have 2 thoughts:

  1. this because i'm on mac while original jar created on different platform.
  2. this because there java runtime vars defined (jar`s -j option) while creating package.

this makes me think either need find platform created , try packaging there, or find out -j-options defined during packaging operation. possible? how?


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -