|repack existing midlet jar with my modifications [message #633382]
||Sun, 17 October 2010 09:28
Registered: October 2009
Hi. I have a buggy midlet jar with no sources. I want to decompile some classes with jadClipse, fix the bugs and create a new jar file. There're several problems.|
- If I add the original jar file to java build path/libraries, jad fails with this:
JavaClassFileReadException: can't open input file on `Foo.jar|a.class'
So I have to unpack the jar into the folder "classes" and do "Add Class Folder" instead
- Now when I have the folder "classes" in my classpath, I want a.class and foo.png from it to end up in the generated jar file. For that I edit build.properties like this:
And click the link "Create package" in the app descriptor Overview tab.
But no files from the folder "classes" appear in the generated jar file
- Then I decide to copy the contents of "classes" to the new folder "precompiled" and add this folder to java build path/Source, in build.properties change "classes/" to "precompiled/"
Now when I generate a jar file, foo.png appears in it, but not a.class
Powered by FUDForum
. Page generated in 0.02070 seconds