URL[] () { try { final Path javaFxJar = Paths.get(PathUtil.getJarPathForClass(SceneBuilderUtil.class)); boolean isDevMode = Files.isDirectory(javaFxJar); final Path sceneBuilder = getSceneBuilder11Path(); final Path sceneBuilderImpl = getJarPath(isDevMode ? "intellij.javaFX.sceneBuilder" : "rt/sceneBuilderBridge.jar", javaFxJar); try { Class.forName(JavaFxCommonNames.JAVAFX_SCENE_NODE); } catch (ClassNotFoundException e) { try { List<URL> urls = new ArrayList<>(); urls.add(sceneBuilder.toUri().toURL()); urls.add(sceneBuilderImpl.toUri().toURL()); addJavafxFromLocalRepository(urls); return urls.toArray(new URL[0]); } catch (IOException ignored) { //keep only scene builder in classloader } } return new URL[]{sceneBuilder.toUri().toURL(), sceneBuilderImpl.toUri().toURL()}; } catch (IOException e) { LOG.warn(e); } return new URL[]{}; }