Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.0 RC
    • Fix Version/s: not determined
    • Component/s: code
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      149

      Description

      I'm running visualvm 1.0 RC on Solaris sparc, and I get an error saying:

      You are running VisualVM using an unsupported version of Java (1.6.0_06), from
      (/path/to/java1.6.0_06/jre), startup terminated.

      How come?

        Activity

        Hide
        jsedlacek added a comment -

        Please run VisualVM using JDK, not JRE. See
        https://visualvm.dev.java.net/troubleshooting.html#jrehost.

        Show
        jsedlacek added a comment - Please run VisualVM using JDK, not JRE. See https://visualvm.dev.java.net/troubleshooting.html#jrehost .
        Hide
        kohsuke added a comment -

        I guess what I don't understand is that I'm not specifying JRE as JAVA_HOME.

        I've done:

        $ export JAVA_HOME= /path/to/java1.6.0_06
        $ ./visualvm --jdkhome=$JAVA_HOME

        and it gave me this message. (as you know, every JDK includes JRE, and somehow
        someone is picking JRE up.)

        Doing "pargs " on the JVM process yields the following. JVM itself runs on
        java1.6/bin/java, not java1.6/jre/bin/java, and --jdkhome is passed correctly,
        too (although -Djdk.home is fishy — could that be it?)

        % pargs 9583
        9583: /files/hudson/tools/java1.6/bin/java -Djdk.home=/ -classpath
        /files/visualvm/pl
        argv[0]: /files/hudson/tools/java1.6/bin/java
        argv[1]: -Djdk.home=/
        argv[2]: -classpath
        argv[3]:
        /files/visualvm/platform7/lib/boot.jar:/files/visualvm/platform7/lib/org-openide-modules.jar:/files/visualvm/platform7/lib/org-openide-util.jar
        argv[4]: -Dnetbeans.system_http_proxy=http://webcache.sfbay.sun.com:8080/
        argv[5]: -Dnetbeans.system_http_non_proxy_hosts=
        argv[6]: -Dnetbeans.dirs=./..//visualvm:./..//profiler2:
        argv[7]: -Dnetbeans.home=/files/visualvm/platform7
        argv[8]: -Xms24m
        argv[9]: -Xmx192m
        argv[10]:
        -Dnetbeans.accept_license_class=com.sun.tools.visualvm.modules.startup.AcceptLicense
        argv[11]: org.netbeans.Main
        argv[12]: --userdir
        argv[13]: /home/kk122374/.visualvm/release10rc
        argv[14]: --branding
        argv[15]: visualvm
        argv[16]: --jdkhome=/mnt/ext-hdd/hudson/tools/solaris-sparcv9/java1.6.0_02/

        Show
        kohsuke added a comment - I guess what I don't understand is that I'm not specifying JRE as JAVA_HOME. I've done: $ export JAVA_HOME= /path/to/java1.6.0_06 $ ./visualvm --jdkhome=$JAVA_HOME and it gave me this message. (as you know, every JDK includes JRE, and somehow someone is picking JRE up.) Doing "pargs " on the JVM process yields the following. JVM itself runs on java1.6/bin/java, not java1.6/jre/bin/java, and --jdkhome is passed correctly, too (although -Djdk.home is fishy — could that be it?) % pargs 9583 9583: /files/hudson/tools/java1.6/bin/java -Djdk.home=/ -classpath /files/visualvm/pl argv [0] : /files/hudson/tools/java1.6/bin/java argv [1] : -Djdk.home=/ argv [2] : -classpath argv [3] : /files/visualvm/platform7/lib/boot.jar:/files/visualvm/platform7/lib/org-openide-modules.jar:/files/visualvm/platform7/lib/org-openide-util.jar argv [4] : -Dnetbeans.system_http_proxy= http://webcache.sfbay.sun.com:8080/ argv [5] : -Dnetbeans.system_http_non_proxy_hosts= argv [6] : -Dnetbeans.dirs=./..//visualvm:./..//profiler2: argv [7] : -Dnetbeans.home=/files/visualvm/platform7 argv [8] : -Xms24m argv [9] : -Xmx192m argv [10] : -Dnetbeans.accept_license_class=com.sun.tools.visualvm.modules.startup.AcceptLicense argv [11] : org.netbeans.Main argv [12] : --userdir argv [13] : /home/kk122374/.visualvm/release10rc argv [14] : --branding argv [15] : visualvm argv [16] : --jdkhome=/mnt/ext-hdd/hudson/tools/solaris-sparcv9/java1.6.0_02/
        Hide
        lmalvent added a comment -

        Hi Kohsuke,

        Try to replace the "=" sign with a whitespace in:

        $ ./visualvm --jdkhome=$JAVA_HOME

        and let us know if it works.

        Regards,
        Luis

        Show
        lmalvent added a comment - Hi Kohsuke, Try to replace the "=" sign with a whitespace in: $ ./visualvm --jdkhome=$JAVA_HOME and let us know if it works. Regards, Luis
        Hide
        kohsuke added a comment -

        Argh. Talk about not reading a documentation!

        I updated the issue to reflect the root cause of this problem, which is that the
        tool should validate commaand line options, as there are many fools like me out
        there, who'd make typos, etc.

        Show
        kohsuke added a comment - Argh. Talk about not reading a documentation! I updated the issue to reflect the root cause of this problem, which is that the tool should validate commaand line options, as there are many fools like me out there, who'd make typos, etc.
        Hide
        jsedlacek added a comment -

        Thanks! I've updated issue priority, several users already reported the same
        problems so this definitely needs to be addressed.

        Not for 1.0.

        Show
        jsedlacek added a comment - Thanks! I've updated issue priority, several users already reported the same problems so this definitely needs to be addressed. Not for 1.0.

          People

          • Assignee:
            visualvm-issues
            Reporter:
            kohsuke
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: