Skip to content

Instantly share code, notes, and snippets.

@nobeans
Created September 12, 2013 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobeans/6532893 to your computer and use it in GitHub Desktop.
Save nobeans/6532893 to your computer and use it in GitHub Desktop.
$ jvisualvm -h
Usage: /Library/Java/JavaVirtualMachines/current/Contents/Home/lib/visualvm/platform/lib/nbexec {options} arguments

General options:
  --help                show this help
  --jdkhome <path>      path to Java(TM) 2 SDK, Standard Edition
  -J<jvm_option>        pass <jvm_option> to JVM

  --cp:p <classpath>    prepend <classpath> to classpath
  --cp:a <classpath>    append <classpath> to classpath
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=96m; support was removed in 8.0
Exception in thread "main" java.lang.IllegalStateException: java.lang.IllegalAccessException: Class org.openide.util.WeakListenerImpl$ProxyListener can not access a member of class org.openide.filesystems.$Proxy0 with modifiers "public"
	at org.openide.util.WeakListenerImpl$ProxyListener.<init>(WeakListenerImpl.java:384)
	at org.openide.util.WeakListenerImpl.create(WeakListenerImpl.java:125)
	at org.openide.util.WeakListeners.create(WeakListeners.java:232)
	at org.openide.filesystems.MultiFileObject.<init>(MultiFileObject.java:86)
	at org.openide.filesystems.MultiFileObject.<init>(MultiFileObject.java:103)
	at org.openide.filesystems.MultiFileSystem.getMultiRoot(MultiFileSystem.java:228)
	at org.openide.filesystems.MultiFileSystem.findResource(MultiFileSystem.java:316)
	at org.openide.filesystems.FileUtil.getConfigFile(FileUtil.java:2237)
	at org.openide.filesystems.FileUtil.getConfigRoot(FileUtil.java:2267)
	at org.netbeans.core.startup.CLICoreBridge.usage(CLICoreBridge.java:68)
	at org.netbeans.CLIHandler.showHelp(CLIHandler.java:123)
	at org.netbeans.CLIHandler.checkHelp(CLIHandler.java:177)
	at org.netbeans.CLIHandler.initialize(CLIHandler.java:528)
	at org.netbeans.CLIHandler.initialize(CLIHandler.java:344)
	at org.netbeans.MainImpl.execute(MainImpl.java:151)
	at org.netbeans.MainImpl.main(MainImpl.java:46)
	at org.netbeans.Main.main(Main.java:39)
Caused by: java.lang.IllegalAccessException: Class org.openide.util.WeakListenerImpl$ProxyListener can not access a member of class org.openide.filesystems.$Proxy0 with modifiers "public"
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:93)
	at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:295)
	at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:287)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:404)
	at org.openide.util.WeakListenerImpl$ProxyListener.<init>(WeakListenerImpl.java:374)
	... 16 more
@ajaxsys
Copy link

ajaxsys commented Dec 16, 2014

Hi, did anyone resolve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment