can i use java library for java se in java me

2019-08-22 05:40发布

can i use java library for java se in java me. i use smack java library to create a chat client. can i use the same libary to create a chat client for javame.

4条回答
不美不萌又怎样
2楼-- · 2019-08-22 05:52

You have to port the library in J2ME.

查看更多
贪生不怕死
3楼-- · 2019-08-22 06:01

Probably not. Java ME uses an old version of the Java language and the java byte code specification, also a lot of the basic standard library functions are not present. The networking library functions are completely different for instance. It is very unlikely that a modern Java lib can be used in java ME without serious modifications.

查看更多
forever°为你锁心
4楼-- · 2019-08-22 06:07

No.Can't mingle Java SE & Java ME.So that Java ME has it's own libraries and API's.

查看更多
女痞
5楼-- · 2019-08-22 06:08

Definitely no. J2ME uses completely different VM - so it can't use J2SE libraries at all.

查看更多
登录 后发表回答