Closed GoogleCodeExporter closed 8 years ago
Hi pamjagtap,
you get this error because your Android app doesn't reference the
androjena_0.2.jar library (and possibly other required libraries): that's why
the bytecode verifier cannot resolve the com.hp.hpl.jena.util.FileManager
class, thus the NoClassDefFoundException.
Please make sure that all the libraries listed below are referenced and
packaged with your application:
- androjena_0.2.jar
- icu4j-3.4.4.jar
- iri-0.7.jar
- slf4j-android-1.6.1-RC1.jar
If you're using Eclipse, just make sure that those libraries are correctly
referenced in the Libraries tab inside the Java Build Path project properties
(follow the instructions in the README file contained in the androjena release
package)
Please let me know if this solves the issue; if it doesn't, please add a
comment to this issue with the following application files attached (when
available):
- the portion of your source code where the exception is thrown
- AndroidManifest.xml
- .classpath (it's an Eclipse file in the root of your project)
- default.properties
Thanks,
lorenzo
Original comment by loreca...@gmail.com
on 17 Nov 2010 at 11:23
I have filed these issues and henceforth I will use this ID to comment.
Please go over Issue 6 because of which I had to remove "icu4j-3.4.4.jar" from
build path. I understand fixing that issue might resolve this and issue 5
automatically. Still I have attached application files which can be useful for
you.
-- Source Code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
subjectString.append("****START********");
Model model = FileManager.get().loadModel("http://localhost/rules/SchoolModel.n3");
}
Original comment by pramod.w...@gmail.com
on 17 Nov 2010 at 6:03
Attachments:
Issue 6 solution probably works for this issue too. If not, it'll be reopened.
Original comment by loreca...@gmail.com
on 23 Nov 2010 at 4:36
Original issue reported on code.google.com by
pamjag...@gmail.com
on 16 Nov 2010 at 10:19