Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Problem during packaging: empty jar in \.mtj.tmp\emulation
Problem during packaging: empty jar in \.mtj.tmp\emulation [message #577715] Sun, 13 September 2009 11:19
BenH is currently offline BenH
Messages: 39
Registered: July 2009
Member
Hi

After 4 years successfully using EclipseME, today I upgraded to MTJ. I
have encountered a problem generating packaged builds, both obfuscated and
non-obfuscated.

For some reason, the packaging process creates a fresh file in
\.mtj.tmp\emulation\ABC.jar that contains only the mainfest, ie all
classes and resources are missing. Perhaps the PackageBuilderVisitor class
isnt operating correctly?

Another thing: the error is detected late and indirectly by MTJ. The
actual error in the logs is "failed to inflate jar file", and it occurs
much later in the build process. Before that, Proguard had failed, and yet
MTJ just shows a popup and continues on heedless. I had to download and
read the MTJ source code to trace the cause back to the empty jar in the
emulation folder. Fail fast!

In PackageBuilder.updatePackage(), why not validate that the created Jar
has >= 1 classfile, before continuing to the next step, so as to detect
error states closer to where they happen?
Previous Topic:Old bug progress
Next Topic:user defined symbol sets not exported during antenna export for MTJ 1.0.1RC3
Goto Forum:
  


Current Time: Thu Oct 02 04:42:36 GMT 2014

Powered by FUDForum. Page generated in 0.01507 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software