Java very unusual classpath problems
问题 I'm trying to run an application that has native libraries and stuff using the following code: ProcessBuilder pb = new ProcessBuilder("javaw", "-classpath", binDir + "polyrd.jar;" + binDir + "lwjgl.jar;" + binDir + "lwjgl_util.jar;", "-Djava.library.path=" + nativesDir, "monster860.polyrd.Polyrd"); I tried doing the equivalent in the command line, changing it to -cp, just using bindir instead of binDir + "polyrd.jar;" + binDir + "lwjgl.jar;" + binDir + "lwjgl_util.jar;" , and switching