Dynamically detecting supported configuration/prof

2019-07-29 17:42发布

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.

标签: java-me
1条回答
不美不萌又怎样
2楼-- · 2019-07-29 18:21

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.

查看更多
登录 后发表回答