Lesya
Lesya

Reputation: 79

Cannot run Jmeter on my terminal

When I write jmeter in my terminal I have this error.

An error occurred: Unable to make field private static java.lang.String sun.awt.X11.XToolkit.awtAppClassName accessible: module java.desktop does not "opens sun.awt.X11" to unnamed module @4d3167f4

Upvotes: 8

Views: 9834

Answers (3)

Isengo
Isengo

Reputation: 2083

I had this same issue installing openjdk-9-jre on Ubuntu Gnome 17.04

installing the "older" Version via

sudo apt-get install openjdk-8-jre

worked for me right away.

https://wiki.ubuntuusers.de/Java/Installation/OpenJDK/

Upvotes: 3

ezwrighter
ezwrighter

Reputation: 1064

Check which version of Java you are running. I received this same error on another java application when I started using Java 9 EA. I downloaded jmeter just out of curiosity and get the same error.

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 168217

  1. Download latest Oracle JRE or JDK and unpack it somewhere, i.e. to /opt/java folder
  2. Download latest JMeter and unpack it to /opt/jmeter folder
  3. Amend PATH environment variable to start with the "bin" folder of Oracle JDK installation like:

    PATH=/opt/java/bin:$PATH && export PATH
    
  4. In the same terminal window navigate to JMeter folder

    pushd /opt/jmeter
    
  5. Execute JMeter

    ./jmeter
    

More information: How to Get Started With JMeter: Part 1 - Installation & Test Plans

Upvotes: 2

Related Questions