File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,10 +338,13 @@ public String getClassPath() {
338338 cp .append (File .pathSeparatorChar );
339339 cp .append (new File (libraryFolder , jar ).getAbsolutePath ());
340340 }
341- jarHeads = new File (nativeLibraryPath ).list (jarFilter );
342- for (String jar : jarHeads ) {
343- cp .append (File .pathSeparatorChar );
344- cp .append (new File (nativeLibraryPath , jar ).getAbsolutePath ());
341+ File nativeLibraryFolder = new File (nativeLibraryPath );
342+ if (!libraryFolder .equals (nativeLibraryFolder )) {
343+ jarHeads = new File (nativeLibraryPath ).list (jarFilter );
344+ for (String jar : jarHeads ) {
345+ cp .append (File .pathSeparatorChar );
346+ cp .append (new File (nativeLibraryPath , jar ).getAbsolutePath ());
347+ }
345348 }
346349 //cp.setLength(cp.length() - 1); // remove the last separator
347350 return cp .toString ();
You can’t perform that action at this time.
0 commit comments