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.
相关问题
- Unexpected JDWP Error 21
- Receive text message using J2ME
- How to detect key pressed event in LWUIT form?
- Are all Java SE classes available in Java ME?
- (J2ME) How to get list of files/resources inside m
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.