Dynamically detecting supported configuration/profile/JSRs in Java ME

萝らか妹 提交于 2019-12-13 19:23:17

问题


How do I dynamically detect what profile/configuration is being used and what JSRs are supported? I know that you can dynamically detect supported classes, but I would be surprised if picking a random class that should only be in a particular profile/configuration were the proper way of doing this.


回答1:


Use System.getProperty on the "microedition.configuration" and "microedition.profiles" properties. Other JSRs may have defined properties as well. Look at the list of defined property names.



来源:https://stackoverflow.com/questions/2429429/dynamically-detecting-supported-configuration-profile-jsrs-in-java-me

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