#70 Issues Building

open
nobody
5
2010-01-19
2010-01-19
No

Hi there,

I am using Eclipse and am working on an Android app. I included your htmlparser jar file into my Build Path and when I do that, the htmllexer jar also adds itself as well. I type in your sample code and go to build and I get this error when building:

[apply] UNEXPECTED TOP-LEVEL EXCEPTION:
[apply] java.lang.IllegalArgumentException: already added: Lorg/htmlparser/util/SimpleNodeIterator;
[apply] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[apply] at com.android.dx.dex.file.DexFile.add(DexFile.java:143)
[apply] at com.android.dx.command.dexer.Main.processClass(Main.java:301)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:278)
[apply] at com.android.dx.command.dexer.Main.access$100(Main.java:56)
[apply] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:229)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
[apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
[apply] at com.android.dx.command.dexer.Main.processOne(Main.java:247)
[apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[apply] at com.android.dx.command.dexer.Main.run(Main.java:139)
[apply] at com.android.dx.command.dexer.Main.main(Main.java:120)
[apply] at com.android.dx.command.Main.main(Main.java:89)
[apply] 1 error; aborting

I noticed that both htmlparser and htmllexer both have an org.htmlparser.util.SimpleNodeIterator. What could be the problem?

Thanks for your time,
Brandon

Discussion