Android And Xml Parser Stax-1.2.0.jar Versus Using The Source
Solution 1:
A copyright statement doesn't mean you can't copy or modify the source; it means that you can only do what the license permits you to do. So you need to find out what the license for these files permits. They are almost certainly issued under some kind of open source license, which probably permits the kind of usage you have in mind.
This is not legal advice!
Solution 2:
I got it to work. Here is what I did:
Create a new Java project in Eclipse, extract the source code file stax-src-1.2.0.zip (downloaded from Codehaus), and import the source code into your new project.
Refactor all of the javax.xxxxx folders. I added "bea." in front of all of them, like "bea.javax.xml". Make sure none of the source files show an error. I had to open one of them and manually and change its import (by addeding "bea." to it).
Right-click on src and select Export... "Java - JAR File", and click next.
In "Select the resources to export", select both .classpath and .project. Then have these options selected:
- Export generated class files and resource
- Export java source files and resources
- Chooses a destination. The libs directory of the Android project is where it will go.
- Compress the contents of the JAR file
- Add directory entries
Once the JAR file is in the libs folder of the Android project, you will be able to use. I didn't need to add it to the build path.
Post a Comment for "Android And Xml Parser Stax-1.2.0.jar Versus Using The Source"