File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
visualvm/sa/src/org/graalvm/visualvm/sa Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2007, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -48,13 +48,14 @@ class SAWrapper {
48
48
// We will set those here before attaching to SA agent.
49
49
System .setProperty ("sun.jvm.hotspot.debugger.useProcDebugger" , "true" ); // NOI18N
50
50
System .setProperty ("sun.jvm.hotspot.debugger.useWindbgDebugger" , "true" ); // NOI18N
51
+ URL saLibUrl = saLibFile .toURI ().toURL ();
51
52
URL [] saLibUrls ;
52
53
if (saLibFile .getName ().endsWith (".jmod" )) { // NOI18N
53
- URL jmodUrl = new URL ("jar:file:///" + saLibFile . getAbsolutePath () +"!/classes/" ); // NOI18N
54
+ URL jmodUrl = new URL ("jar" , "" , saLibUrl +"!/classes/" ); // NOI18N
54
55
saLibUrls = new URL []{jmodUrl };
55
56
libraryPath = new File (jdkHome , "lib/" ); // NOI18N
56
57
} else {
57
- saLibUrls = new URL []{saLibFile . toURI (). toURL () };
58
+ saLibUrls = new URL []{saLibUrl };
58
59
String osArch = System .getProperty ("os.arch" ); // NOI18N
59
60
if ("x86" .equals (osArch )) {
60
61
osArch = "i386" ;
You can’t perform that action at this time.
0 commit comments