gymshoe wrote:
> Android seems to "accept" some external jars and API's, and crashes
> with others.
> For instance, it seems to be OK (although I haven't proved this, but I
> don't get errors) with jai-core-1.1.13-alpha.zip & jai_codec-1.1.13-
> alpha.zip which have API's like:
> javax.media.jai.JAI;
> javax.media.jai.OpImage;
> javax.media.jai.RenderedOp;
> com.sun.media.jai.codec.SeekableStream;
> 
> but when I try to add a jar (rt.jar - standard java1.6sdk)  which has
> things like:
> java.awt.RenderingHints;
> java.awt.image.renderable.ParameterBlock;
> 
> it fails.

My Java 1.6 version of rt.jar is 5MB and has around 17,000 classes,
including its own copies of many of the java.* and other core packages
found in the Android runtime.

It would shock and amaze me if rt.jar actually *worked* on Android.

> Is there a way to know what Android will accept, and what it won't?

Definitively, up front? Not that I am aware of.

Generally speaking, I have had better luck using source code (either
directly in my Android project or as a JAR I compile myself with the
same compiler as I am using for the Android code) than precompiled JARs.
Precompiled JARs *can* work, but your kilometerage may vary.

So, for example, the two classes you cite, and presumably their
dependencies, are in GNU Classpath. Perhaps those would be a better fit
for your needs.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to