Java Question does not match path (bin/BADoclet$Property.class)

qle

Member
Licensed User
Longtime User
long story short....
Ive had to reinstall my Eclipse (via ATD bundle) so i can create libraries from 3rd Party SDK's.


I can create the .xml and export the .jar without error (from eclipse), but when i try to compile my B4A project i get
B4X:
Convert byte code - optimized dex.    Error
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.iface.ParseException: class name (BADoclet$Property) does not match path (bin/BADoclet$Property.class)
    at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:520)
    at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
    at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
    at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
    at com.android.dx.command.dexer.Main.processClass(Main.java:704)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
    at com.android.dx.command.dexer.Main.access$300(Main.java:83)
    at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
    at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    at com.android.dx.command.dexer.Main.processOne(Main.java:632)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
    at com.android.dx.command.dexer.Main.run(Main.java:246)
    at com.android.dx.command.dexer.Main.main(Main.java:215)
    at com.android.dx.command.Main.main(Main.java:106)
...while parsing bin/BADoclet$Property.class
1 error; aborting


note: i do have a working library that i created back in 2012 from the same source, but after the debacle of updating my ADT and breaking the version compatibility etc.... i had to reinstall the ADT bundle.
i need to make sure i can recreate my library from my source to make sure it works again!!!

Any clues much appreciated...

Best Regards
Lee
 

qle

Member
Licensed User
Longtime User
Thanks, but i have just resolved the issue..
i started from scratch in eclipse and made a new library project...
following http://www.rwblinn.de/142k2t9.htm
this got rid of the "class name (BADoclet$Property) does not match"


Edit:
The new clean project (in eclipse) now also works in SLC, Thats good!
I do still have to add the libs/armeabi/libserial_port.so to the B4A <project>/files folder or i get the UnsatisfiedLinkError, but all is working for now.. I now have a more complex SDK to make a library out of.
 
Last edited:
Top