can i use java library for java se in java me

丶灬走出姿态 提交于 2019-12-25 02:32:59

问题


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.


回答1:


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.




回答2:


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




回答3:


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




回答4:


You have to port the library in J2ME.



来源:https://stackoverflow.com/questions/3747974/can-i-use-java-library-for-java-se-in-java-me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!