Reputation: 79
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
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
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
Reputation: 168217
/opt/java
folder/opt/jmeter
folderAmend PATH environment variable to start with the "bin" folder of Oracle JDK installation like:
PATH=/opt/java/bin:$PATH && export PATH
In the same terminal window navigate to JMeter folder
pushd /opt/jmeter
Execute JMeter
./jmeter
More information: How to Get Started With JMeter: Part 1 - Installation & Test Plans
Upvotes: 2