java - NoClassDefFoundError in nested jar (Android) -
i have created simple app test scenario failing noclassdeffounderror
.
lets take example have test1 android project class testclass methods. test1 project exported test1.jar , exported source folder class testclass , classpath
, .project
files.
in android project test2 added test1.jar
in libs folder. , in test2 project have class test2class calls methods of test1.jar class.
after exported test2 project test2.jar
file following above steps.
so when use test2.jar
in project above error noclassdeffounderror
. scenario of jar inside jar.
is anywhere should able access jar inside jar.
thanks in advance.
try step step:
1. remove library
projects clean.
2. go first project test1
right click properties -> android. check is library
(make library).
3. go second project test2
right click properties -> android in library section select add
-> add first project library.
4. go second project test2
right click properties -> android. also, check is library
.
5. go third project c
right click properties -> android. in library section select add
-> add first , second library. (do not make proj c library)
6. clean , run proj c
.
edit: can see bug bug 405212 - not pack jars bundled inside packed jar , bug 361628 - nested jars cannot unpacked java 1.7. try above way should work.
Comments
Post a Comment