Question

My library has dependency on org.ietf.jgss package which is not included in the android.jar.

I added jndi.jar for javax.naming package(also missed in the android) but couldn't find the jar for the org.ietf.jgss.

I repackaged the jar from rt.jar(JDK1.5) following instruction from http://code.google.com/p/dalvik/wiki/JavaxPackages.

But the repackaged jar's file size is quite big(14mb) and I am not sure that is the only way to deal with missing APIs.

There are number of packages that are missed from common JDK. Are there any documents that describes how to deal with each missing API.

Any help would be appreciated.

Many thanks.

Was it helpful?

Solution

I added jndi.jar for javax.naming package(also missed in the android) but couldn't find the jar for the org.ietf.jgss.

You should be obtaining all of this code from Apache Harmony.

I repackaged the jar from rt.jar(JDK1.5) following instruction from http://code.google.com/p/dalvik/wiki/JavaxPackages.

That is unlikely to work. It is also a license violation for the Sun/Oracle code you are using this way.

Are there any documents that describes how to deal with each missing API.

No. Generally, you shouldn't be using them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top