From cfa50b476d549f75f1eebc9f40618d0b4c16642b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B0=D1=87?= Date: Fri, 22 Nov 2019 22:55:05 +0500 Subject: [PATCH] Fix class recompilation on linux Use path.separator to determine correct char --- .../bytecode/club/bytecodeviewer/compilers/JavaCompiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/the/bytecode/club/bytecodeviewer/compilers/JavaCompiler.java b/src/the/bytecode/club/bytecodeviewer/compilers/JavaCompiler.java index 86e90d06..a7ce7372 100644 --- a/src/the/bytecode/club/bytecodeviewer/compilers/JavaCompiler.java +++ b/src/the/bytecode/club/bytecodeviewer/compilers/JavaCompiler.java @@ -78,7 +78,7 @@ public class JavaCompiler extends Compiler { pb = new ProcessBuilder( BytecodeViewer.javac, "-d", fileStart2, - "-classpath", cp.getAbsolutePath() + ";" + BytecodeViewer.library, + "-classpath", cp.getAbsolutePath() + System.getProperty("path.separator") + BytecodeViewer.library, java.getAbsolutePath() ); }