SonarQube 7.9 server requires java 11, which is not free

Trying to install and run SonarQube 7.9 developer on Ubuntu 16.05.6 on a trial license but server requires java 11 to run:

root@a22bf17d8fe1:/work/sonarqube-7.9.1/bin/linux-x86-64# ./sonar.sh console
Running SonarQube...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    |
jvm 1    | WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11+ to run
jvm 1    | java.lang.IllegalStateException: SonarQube requires Java 11+ to run
jvm 1    |      at org.sonar.application.App.checkJavaVersion(App.java:93)
jvm 1    |      at org.sonar.application.App.start(App.java:56)
jvm 1    |      at org.sonar.application.App.main(App.java:98)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(Method.java:498)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.lang.Thread.run(Thread.java:748)
wrapper  | <-- Wrapper Stopped
root@a22bf17d8fe1:/work/sonarqube-7.9.1/bin/linux-x86-64#

Apparently java 11 is not free?

Will a separate java 11 license need to be purchased just to run trial edition and consider for purchase for our company?

Thanks,
James

I wound up using a nightly build of AdoptOpenjdk for now. Now when I try running my server via this guide, https://docs.sonarqube.org/latest/setup/get-started-2-minutes/, it starts…and then stops so I cannot browse to the localhost address listed like this:

root@71c906c03d05:/work# /opt/sonarqube-7.9.1/bin/linux-x86-64/sonar.sh console
Running SonarQube...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2019.10.15 21:49:31 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube-7.9.1/temp
jvm 1    | 2019.10.15 21:49:31 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1    | 2019.10.15 21:49:31 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube-7.9.1/elasticsearch]: /opt/sonarqube-7.9.1/elasticsearch/bin/elasticsearch
jvm 1    | 2019.10.15 21:49:31 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | 2019.10.15 21:49:32 INFO  app[][o.e.p.PluginsService] no modules loaded
jvm 1    | 2019.10.15 21:49:32 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1    | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1    | 2019.10.15 21:49:37 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
jvm 1    | 2019.10.15 21:49:37 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1    | 2019.10.15 21:49:37 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper  | <-- Wrapper Stopped
root@71c906c03d05:/work#        

I guess this is a new problem?

Hi James,

Welcome to the community!

This is a new problem indeed. :slightly_smiling_face:

Since you’ve already figured out the original problem, opened a new thread for the new and gotten an answer there, I guess we can consider this thread closed.

 
:slightly_smiling_face:
Ann

1 Like

Thanks Ann! :metal::sunglasses: