Selaa lähdekoodia

Fix Class path separator for Unix systems
Error executing script!
org.mdkt.compiler.CompilationException: Unable to compile the source

UchihaSV 6 vuotta sitten
vanhempi
sitoutus
e287a46c22

+ 1 - 1
src/main/java/com/l2jserver/gameserver/scripting/ScriptEngineManager.java

@@ -51,7 +51,7 @@ public final class ScriptEngineManager
 	
 	public static final File SCRIPT_FOLDER = new File(Config.DATAPACK_ROOT.getAbsolutePath(), "data/scripts");
 	
-	private static final String CLASS_PATH = SCRIPT_FOLDER.getAbsolutePath() + ";" + System.getProperty("java.class.path");
+	private static final String CLASS_PATH = SCRIPT_FOLDER.getAbsolutePath() + System.getProperty("path.separator") + System.getProperty("java.class.path");
 	
 	private static final String MAIN = "main";