eclipse-efx / efxclipse-rt

Eclipse Public License 1.0
28 stars 29 forks source link

FXClassLoader doesn't work with JavaFX SDK paths which include spaces OS: Windows #440

Closed RobPoe closed 2 years ago

RobPoe commented 2 years ago

Hello, i tried e(fx)clipse with JavaFX SDK in C:\Program Files\Java\javafx-sdk-17.0.1\lib and the libraries are not found because of the spaces in the path. The issue can be solved in the class FXClassLoader line 447 URL[] urls = Stream.of(paths).map( Path::toFile).map( f -> { try { return f.toURL(); } catch(Throwable t) { return null; } } ).toArray( i -> new URL[i]); With return f.toURI().toURL(); it works.

Thanks