You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -133,11 +134,14 @@ public void setToClasspath(String path) {
133
134
try {
134
135
Filedirectory = newFile(path);
135
136
File[] fileList = directory.listFiles();
136
-
137
-
for (Filefile : fileList) {
138
-
if (file.getName().endsWith(".jar"))
137
+
booleanjarsFound = false;
138
+
for (Filefile : Objects.requireNonNull(fileList)) {
139
+
if (file.getName().endsWith(".jar")) {
140
+
jarsFound = true;
139
141
_addPathToClassPath(file.getAbsolutePath());
142
+
}
140
143
}
144
+
if(!jarsFound) thrownewJavaFXLibraryNonFatalException("No jar files found from classpath: " + FileSystems.getDefault().getPath(path).normalize().toAbsolutePath().toString());
0 commit comments