使用特定 jdk 启动 SonarQube 服务器 [英] start SonarQube server with specific jdk

查看:74
本文介绍了使用特定 jdk 启动 SonarQube 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法用特定的 jdk 启动 SonarQube 服务器(v. 3.7.4)?

Is there a way to start the SonarQube server (v. 3.7.4) with an specific jdk?

我的情况:我的 java-home 设置为 jdk 1.8,但 SonarQube 服务器在 1.8 中存在一些已知问题.所以我想用 jdk 1.7 启动服务器(没有将我的 java-home 设置为 1.7).我在 bat 文件中找不到任何内容.

My case: My java-home is set to jdk 1.8, but SonarQube server has some known problems with 1.8. So I want to start the server with jdk 1.7 (without setting my java-home to 1.7). I couldn't find anything in the bat-files.

操作系统:Windows 7;SonarQube 服务器版本:3.7.4

OS: Windows 7; SonarQube server version: 3.7.4

推荐答案

您必须编辑 <install_directory>/conf/wrapper.conf 文件并更新 wrapper.java.命令属性指向你想要的JDK.

You have to edit the <install_directory>/conf/wrapper.conf file and update the wrapper.java.command property to point to the JDK you want.

所有内容都记录在此 wrapper.conf 文件中.

Everything is documented in this wrapper.conf file.

这篇关于使用特定 jdk 启动 SonarQube 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆