Bug 63355

Summary: View Results Tree: Browser view option is not Available with Java 11, document how to make it available
Product: JMeter Reporter: RuThaNiel van den Naar <ruthan>
Component: MainAssignee: JMeter issues mailing list <issues>
Severity: enhancement CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 5.0   
Target Milestone: JMETER_5.2   
Hardware: All   
OS: All   

Description RuThaNiel van den Naar 2019-04-16 12:24:28 UTC
i wonder why in Jmeter 5.0 on Windows Server 2016 is not available View Results Tree Browser view option, on all other my Windows 7 / Windows 10 machines its working fine.

  I tried same Java version, install some browsers etc.. Its not avaible, i didnt find some any information about this in documentation, or online.
Comment 1 Felix Schumacher 2019-04-16 15:37:51 UTC
Have you looked in the log panel for errors?

Most likely it is not the same Java version that you are using. The Browser View uses JavaFX, which is available -- by default -- only in Oracle Java 8.
Comment 2 RuThaNiel van den Naar 2019-04-16 16:07:42 UTC
Right after plain Jmeter start without opening any test plan there is this error:
2019-04-16 18:04:44,235 WARN o.a.j.v.ViewResultsFullVisualizer: Error loading result renderer: org.apache.jmeter.visualizers.RenderInBrowser
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
	at java.lang.Class.forName0(Native Method) ~[?:?]
	at java.lang.Class.forName(Class.java:315) ~[?:?]
	at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.createComboRender(ViewResultsFullVisualizer.java:462) [ApacheJMeter_components.jar:5.0 r1840935]
	at org.apache.jmeter.visualizers.ViewResultsFullVisualizer.createLeftPanel(ViewResultsFullVisualizer.java:430) [ApacheJMeter_components.jar:5.0 r1840935]

Java is 11:
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)

You are right i though that on local machine i was using same version, but im using Java 8:

C:\Users\RuThaN>java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

  So its bug, i have to downgraded Java?
Comment 3 Felix Schumacher 2019-04-16 16:41:07 UTC
You either have to downgrade to a Oracle Java -- which includes JavaFX, or you try to integrate JavaFX into a newer Java version. openjfx.io claims to have JavaFX versions for newer Java versions.

If you get it to work, it would be nice, if you could do a write up of the steps necessary.
Comment 4 RuThaNiel van den Naar 2019-05-06 11:36:46 UTC
After downgrade of Java to 8, its working.