This site requires JavaScript, please enable it in your browser!
Greenfoot back
kiarocks
kiarocks wrote ...

2014/2/21

Fix needed for Documentation

kiarocks kiarocks

2014/2/21

#
The documentation for native library loading has a small problem: it uses an invalid string. The current code is
    static {
        final NativeLoader loader = new NativeLoader();
        
        loader.addClasspath( ".\\+libs\jinput.jar" );
        loader.loadClass( "net.java.games.input.ControllerEnvironment" );
    }
but it should be double escaping the second backslash, or not using backslashes at all for Mac/Linux compatibility. So, replace
".\\+libs\jinput.jar"
with
".\\+libs\\jinput.jar" // for windows only
"./+libs/jinput.jar" // for any platform
You need to login to post a reply.