File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
jme3-desktop/src/main/java/com/jme3/system Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -273,10 +273,10 @@ private static void setExtractionFolderToUserCache() {
273
273
274
274
private static int computeNativesHash () {
275
275
URLConnection conn = null ;
276
- try {
277
- String classpath = System .getProperty ("java.class.path" );
278
- URL url = Thread .currentThread ().getContextClassLoader ().getResource ("com/jme3/system/NativeLibraryLoader.class" );
276
+ String classpath = System .getProperty ("java.class.path" );
277
+ URL url = Thread .currentThread ().getContextClassLoader ().getResource ("com/jme3/system/NativeLibraryLoader.class" );
279
278
279
+ try {
280
280
StringBuilder sb = new StringBuilder (url .toString ());
281
281
if (sb .indexOf ("jar:" ) == 0 ) {
282
282
sb .delete (0 , 4 );
@@ -293,7 +293,8 @@ private static int computeNativesHash() {
293
293
int hash = classpath .hashCode () ^ (int ) conn .getLastModified ();
294
294
return hash ;
295
295
} catch (IOException ex ) {
296
- throw new UnsupportedOperationException (ex );
296
+ throw new UncheckedIOException ("Failed to open file: '" + url
297
+ + "'. Error: " + ex , ex );
297
298
} finally {
298
299
if (conn != null ) {
299
300
try {
You can’t perform that action at this time.
0 commit comments