Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8160881

Remove jvisualvm from JDK9

XMLWordPrintable

    • b154
    • generic
    • generic

        jvisualvm won't launch for me on JDK 9. I've tried on linux and solaris. Tried JDK 9 b118 and b125.

        I get the jvisualvm spash screen and the process then exits. If I run with --help flag I see this output to terminal :

        scoffey@scoffey-Latitude-E6420:~$ ./jdk-9/bin/jvisualvm --help
        Usage: /home/scoffey/jdk-9/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
        Exception in thread "main" java.lang.SecurityException: setContextClassLoader
        at jdk.internal.misc.InnocuousThread.setContextClassLoader(java.base@9-ea/InnocuousThread.java:104)
        at org.netbeans.ModuleManager.updateContextClassLoaders(ModuleManager.java:430)
        at org.netbeans.ModuleManager.<init>(ModuleManager.java:125)
        at org.netbeans.core.startup.ModuleSystem.<init>(ModuleSystem.java:70)
        at org.netbeans.core.startup.ModuleSystem.<init>(ModuleSystem.java:64)
        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:529)
        at org.netbeans.CLIHandler.initialize(CLIHandler.java:345)
        at org.netbeans.MainImpl.execute(MainImpl.java:154)
        at org.netbeans.MainImpl.main(MainImpl.java:46)
        at org.netbeans.Main.main(Main.java:39)

              henryjen Henry Jen
              coffeys Sean Coffey
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: