bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Classpath separator on linux is different from windows

Open elijah629 opened this issue 2 years ago • 2 comments

On Linux systems, the java classpath separator is a colon instead of a semicolon. I have used conditional compilation to set the separator based on the compilation target.

elijah629 avatar Nov 04 '23 20:11 elijah629

I think it's worth fixing as well

let fixed_lib_path = Path::new(&libraries_path).join(lib_path.replace("/", "\\"));

DeityLamb avatar Nov 17 '23 02:11 DeityLamb

Yes, code should be :

let fixed_lib_path = Path::new(&libraries_path).join(lib_path.replace("\\", "/"));

or

let fixed_lib_path = Path::new(&libraries_path).join(lib_path);

as / is a path separator that works for Linux, MacOS and Windows ; I don't think that \\ works for OSes other than Windows.

John71-Off avatar Nov 18 '23 07:11 John71-Off