Note that the Android SDK contains a *sub*set of Sun's JDK (version
1.5). This means that JARs running fine under Sun's JDK do not
necessarily run under Android SDK; Android SDK may not contain classes
that are available under Sun's JDK and that are needed by these JARs.

I've had that same issues with some JARs i needed (e.g. Sanselan). I
got the source-code of the sanselan JAR and ported the source-code to
run on Android SDK.

On Mar 21, 10:55 am, ColletJb <[email protected]> wrote:
> I've tried HTMLParser and Jericho but I have the same issue... No way
> to include the jars into the apk...
>
> I've switched to Jericho parser and the issue is now that log4j is not
> found (even if it is included next to jericho's jar into the build
> path)
>
> On 21 mar, 15:16, Streets Of Boston <[email protected]> wrote:
>
>
>
> > Big chance that the JAR file needs to use some Java classes that are
> > not part of the Android SDK.
>
> > In other words, if you would compile the classes in the JAR (instead
> > of just including it),  you would have gotten compiler errors.
>
> > On Mar 21, 9:39 am, ColletJb <[email protected]> wrote:
>
> > > It seems that I have finally successfully added my lib into the build-
> > > path...
>
> > > But I receive this error now : "Conversion to Dalvik format failed
> > > with error 1"
>
> > > And my project is no longer compiling :(
>
> > > On 21 mar, 13:02, ColletJb <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I'm currently trying to make an app using HTMLParser.
>
> > > > I developed the whole app in Eclipse and everything seemed to be fine
> > > > until I tried it on the emulator.
>
> > > > It seems that one of the class included into the provided jar file
> > > > (htmlparser.jar) is not found and thus rise a fatal exception.
>
> > > > I tryed to add this library on my build path (on the library tab,
> > > > before Android 1.5) but it didnt't work. I also tried to make a lib
> > > > directory with this jar file inside, but with no more success.
>
> > > > Every time I try to generate an APK file, the jar file is not
> > > > included...
>
> > > > Can someone tell me how to fix this issue ?
>
> > > > Thank you- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to