Invoking J2SE library in J2ME environment.
843849Aug 8 2004 — edited Aug 15 2004Hello, everyone:
(This question has been asked at "Java Programming" sub-forum before but I have not got enough help and ideas from there. Some buddies introduced me here and I think this forum is a better place to ask J2ME related questions. Please help me if you have idea and time. Thanks a lot.)
I have tried to invoke some J2SE libraries in J2ME environment which are not parts of J2ME library in Java specification. For example, I add some GUI related libraries (for example, AWT), some math related libraries and some cipher related libraries to CLASSPATH of my J2ME environment, which are said for J2SE only in Java specification. To my surprise, most of them can work.
Before this experiment, I believe J2ME environment can only use J2ME libraries. But now I wonder whether J2SE libraries can be used in J2ME environment. Since I really need some functions of J2SE which J2ME does not supply. It will take me much of time to implement them by myself on J2ME environment if they can not be borrowed from J2SE.
- Are the binary codes of "class" file the same in J2SE and J2ME environment?
- Are there any potencial problems when using J2SE libraries in J2ME environment?
Thanks in advance,
George