Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 616374

Summary: =dev-java/oracle-jdk-bin-1.8.0.121 - jvisualvm not available
Product: Gentoo Linux Reporter: Ladislav Zitka <archenroot>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED DUPLICATE    
Severity: normal CC: archenroot
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ladislav Zitka 2017-04-23 10:16:20 UTC
I installed oracle-jdk-bin in default portage folder:
/opt/oracle-jdk-bin-1.8.0.121

with following USE flags:
* Found these USE flags for dev-java/oracle-jdk-bin-1.8.0.121:
 U I
 + + alsa         : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 + + commercial   : Install features requiring a commercial license for production use
 + + cups         : Add support for CUPS (Common Unix Printing System)
 - - derby        : Install bundled Derby (Java database)
 - - doc          : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - examples     : Install examples, usually source code
 + + fontconfig   : Support for configuring and customizing font access via media-libs/fontconfig
 - - headless-awt : Don't install the X backend for AWT, needed by some GUIs (used to be X flag)
 + + javafx       : Install JavaFX libraries
 + + jce          : Install Java Cryptographic Extension Unlimited Strength Jurisdiction Policy Files
 + + nsplugin     : Build plugin for browsers supporting the Netscape plugin architecture (that is almost any modern browser)
 - - source       : Install JVM (and optionally JavaFX) sources


When I try to invoke `jvisualvm` command I get:
Cannot read cluster file: /opt/oracle-jdk-bin-1.8.0.121/etc/visualvm.clusters

I created that folder and file with 2 default values as per documentation:
visualvm
profiler

Now when I run I get another issue with missing platform:
/bin/bash: /opt/oracle-jdk-bin-1.8.0.121/platform/lib/nbexec: Adresář nebo soubor neexistuje (folder or file doesn't exist)

I found this "platform" directory for example as part of Gephi application so tried (as dirty try to fix) copy Gephi platform into JDK directory.

Now when I try to lunch jvisualvm again it is asking(so it is already somehow corrupted anyway, but lets finish this try):
Cannot find java. Please use the --jdkhome switch.

When I provide path:
jvisualvm --jdkhome /opt/oracle-jdk-bin-1.8.0.121/

Result is:
Windows of base Netbeans Platform 8.2 appears which is empty, just menu, etc.

When I try to update or install plugins, it doesn't work. I understand that taking the platform from Gephi is not great step, but I just experimented to get to some "executable stable"
Comment 1 James Le Cuirot gentoo-dev 2017-04-23 12:22:17 UTC

*** This bug has been marked as a duplicate of bug 609326 ***