If I try to start sonarqube this error comes
" wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
jvm 1 | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper | JVM exited while loading the application.
wrapper | JVM Restarts disabled. Shutting down.
wrapper | <-- Wrapper Stopped
Press any key to continue . . . " what is the reason for this error and I want solution?
Naimish MakwanaPosted Mar 18, 2023, 12:23 PM
This error typically occurs when the wrapper configuration file cannot find the necessary files to start SonarQube. Specifically, the error message indicates that the Wrapper was unable to find the main class for the WrapperSimpleApp.
There could be several reasons for this error, including:
To resolve this error, you can try the following steps:
Verify that your SonarQube installation is complete and intact. Check that all required files are present and that the installation directories are correctly configured.
Ensure that you have the correct version of the Java Runtime Environment (JRE) installed and that it is set up correctly in your system environment variables. You can verify this by typing "java -version" in the command prompt.
Check the wrapper configuration file and make sure that it is correctly configured with the correct paths and settings for your system.
Verify that the permissions are set correctly on the SonarQube files and directories. You may need to give the appropriate permissions to the user running the SonarQube service.
Try restarting your system and then attempting to start SonarQube again. Sometimes, a system reboot can clear up issues with missing dependencies or configuration problems.
Thanks
Tuhin PaulPosted Mar 18, 2023, 12:49 PM
In addition to the error message displayed, check the system logs for any additional information that may help identify the root cause of the problem. If the installation is found to be corrupted or incomplete, it may be necessary to completely uninstall and reinstall SonarQube. Also to checking that the correct version of Java is installed, verify that the path to the Java executable is correctly set in the system environment variables. Review that there is enough disk space available on the system to start and run SonarQube.