开发者

JRE and android?

开发者 https://www.devze.com 2023-02-23 06:30 出处:网络
i create an android application, i include some external jar and library , but the jar and library is not available in android sdk ,for that i include JRE system library , the error was cleared and bu

i create an android application, i include some external jar and library , but the jar and library is not available in android sdk ,for that i include JRE system library , the error was cleared and build s开发者_如何学Gouccessfully , but at runtime its thrown error no class def found.

Whether is it possible to use JRE system library and java console application in android or not.

If it is not possible how can i use such file into my application.

Whether it is correct or not to import JRE system library in android application.

Anyone suggest some interesting blog or answer for that.

Thanks.


You can't include JRE system library because it uses native stuff that android doesn't have plus you would have duplicating classes. If the library doesn't compile in android, you have to port it there or find someone who already done that.

0

精彩评论

暂无评论...
验证码 换一张
取 消