I'm currently setting up Sonarqube for a new project. I was successful in configuring it around a month ago, but now I'm facing an error that I can't seem to resolve. The issue might not be directly related to Sonarqube, so any help in troubleshooting would be much appreciated. The error occurs when I try to execute the command "sonar-scanner" in my project directory.
Here's the specific error message:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Steps I've taken to try and fix the problem:
- Restarted my computer (LOL)
- Updated Java
- Installed Java
- Cleared Java caches
- Updated Sonarqube
- Tried using Sonar-Runner (an older version of the Sonar-Scanner as per my understanding)
- Installed Sonar-Scanner
- Checked if there's enough RAM for the VM
- Checked my Java installation with a simple class
My Environment :
openjdk version "12.0.1" 2019-04-16
OpenJDK Runtime Environment (build 12.0.1+12)
OpenJDK 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)
javac 12.0.1
MacOS Mojave version 10.14.5
sonarqube 7.8
sonar-scanner 3.3.0.1492