# Java Error after launching Sonar Service

**URL:** <https://community.sonarsource.com/t/java-error-after-launching-sonar-service/131857>\
**Category:** SonarQube Server / Community Build\
**Tags:** java\
**Created:** [December 9, 2024, 6:32pm UTC](https://community.sonarsource.com/t/java-error-after-launching-sonar-service/131857 "2024-12-09T18:32:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![landonveitch](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/landonveitch/32/64912_2.png) [@landonveitch](https://community.sonarsource.com/u/landonveitch)\
**Post date:** [December 9, 2024, 6:32pm UTC](https://community.sonarsource.com/t/java-error-after-launching-sonar-service/131857/1 "2024-12-09T18:32:45Z")

</div>

Hey everyone, very new here and was curious what this error was in my event viewer after setting the SonarService.bat install.

> Child process [2012 - java.exe -Xms8m -Xmx32m -Djava.awt.headless=true --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -cp “…....\lib\sonar-application-24.12.0.100206.jar” “org.sonar.application.App”] finished with 0

I have made sure my env path is correct…just dont know why this appears.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [December 10, 2024, 1:42pm UTC](https://community.sonarsource.com/t/java-error-after-launching-sonar-service/131857/2 "2024-12-10T13:42:00Z")

</div>

Hi,

Welcome to the community!

I’m not sure I understand. You got this after running an installation? Or after (during?) running SonarQube Server?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![landonveitch](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/landonveitch/32/64912_2.png) [@landonveitch](https://community.sonarsource.com/u/landonveitch)\
**Post date:** [December 10, 2024, 8:42pm UTC](https://community.sonarsource.com/t/java-error-after-launching-sonar-service/131857/3 "2024-12-10T20:42:30Z")

</div>

I installed Sonarqube and did the initial `StartSonar.bat` and was able to pull up the system, make the login and get into the system.

Then I stopped the system and ran `SonarService.bat install` to setup the running as a service. I then rebooted the server and the service didnt start. When I checked the event viewer, I got the error above. I tried restarting the service but I get the same error as above.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [December 11, 2024, 1:17pm UTC](https://community.sonarsource.com/t/java-error-after-launching-sonar-service/131857/4 "2024-12-11T13:17:25Z")

</div>

Hi,

What do your [server logs](https://docs.sonarqube.org/latest/setup/troubleshooting/) say?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![landonveitch](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/landonveitch/32/64912_2.png) [@landonveitch](https://community.sonarsource.com/u/landonveitch)\
**Post date:** [December 11, 2024, 6:31pm UTC](https://community.sonarsource.com/t/java-error-after-launching-sonar-service/131857/5 "2024-12-11T18:31:44Z")

</div>

I must apologize as I just learned that the community edition, you don’t have to even install SQL as thats for the Dev versions and higher. Once I deleted Community and put it back is when I noticed I could access without setting up the conf file.

They really should put somewhere in the documentation that with Community edition you don’t need to install SQL to run for testing purposes.

Once again I apologize for my lack of understanding and appreciate the assistance. I can now use this edition to scan my local project files.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [December 11, 2024, 7:17pm UTC](https://community.sonarsource.com/t/java-error-after-launching-sonar-service/131857/6 "2024-12-11T19:17:36Z")

</div>

Hi,

> [@landonveitch](#):
>
> you don’t need to install SQL

I’m not sure what you mean by this. If you mean that you don’t need an external database, it’s true that SonarQube Community Build and SonarQube Server will fall back to the embedded H2 database to allow evaluation. And that’s for evaluation only. You _should not_ to into production on H2.

&nbsp;  
HTH,  
Ann
