How to get rid from sun proprietary Service.......!

I have made jme run on windows from jme source. it works fine but while building some of the code unchanged and uncompiled like…






F:GameJMERevengeFPSRevengeFPS1.0srccomjmesystemDisplaySystem.java:41: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
import sun.misc.Service;
F:GameJMERevengeFPSRevengeFPS1.0srccomjmesystemDisplaySystem.java:42: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
import sun.misc.ServiceConfigurationError;
F:GameJMERevengeFPSRevengeFPS1.0srccomjmesystemDisplaySystem.java:192: warning: sun.misc.ServiceConfigurationError is Sun proprietary API and may be removed in a future release
            throws ServiceConfigurationError {
F:GameJMERevengeFPSRevengeFPS1.0srccomjmesystemDisplaySystem.java:195: warning: sun.misc.Service is Sun proprietary API and may be removed in a future release
            Iterator<SystemProvider> displayProviders = Service.providers(SystemProvider.class);
F:GameJMERevengeFPSRevengeFPS1.0srccomjmeutilloggingBetterFormatter.java:22: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
            .doPrivileged(new sun.security.action.GetPropertyAction(
F:GameJMERevengeFPSRevengeFPS1.0srccomjmexxmltypesSchemaBase64Binary.java:57: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
            value = new sun.misc.BASE64Decoder().decodeBuffer(newvalue);
                                ^
F:GameJMERevengeFPSRevengeFPS1.0srccomjmexxmltypesSchemaBase64Binary.java:85: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
    String sResult = new sun.misc.BASE64Encoder().encode(value);
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 warnings



i have run it on jdk 1.6_update3 and netbeans6.1 any one help to make without error like above...thanks

is without the sun.misc.* jme run normally??..

Check this thread:



http://www.jmonkeyengine.com/jmeforum/index.php?topic=9231.0



Maybe also continue the discussion there?

also note that these are warnings, not errors.

hi,



maybe the class DisplaySystem should be changed to use javax.util.ServiceLoader  instead of sun.misc.Service.



Of course this only works with Java 1.6.