File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
visualvm/profiling/src/org/graalvm/visualvm/profiling/presets Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -260,9 +260,10 @@ private static String getMainClass(Application application) {
260
260
if (mainClass == null || mainClass .trim ().isEmpty ()) {
261
261
mainClass = "" ; // NOI18N
262
262
} else if (mainClass .endsWith (JAR_SUFFIX )) {
263
- // application is launched with -jar and uses relative path, try to find jar
263
+ // application is launched with -jar and uses relative path,
264
+ // if we are on localhost try to read main class from jar file
264
265
mainClass = "" ; // NOI18N
265
- if (jvm .isGetSystemPropertiesSupported ()) {
266
+ if (application . isLocalApplication () && jvm .isGetSystemPropertiesSupported ()) {
266
267
Properties sysProp = jvm .getSystemProperties ();
267
268
if (sysProp != null ) {
268
269
String userdir = sysProp .getProperty ("user.dir" ); // NOI18N
You can’t perform that action at this time.
0 commit comments