Chr*_*ris 2 sonarqube sonarqube-5.0
我正在安装SonarQube v5.0.
我正在运行Windows Server 2012 64位(虚拟操作系统),Java 1.8 64位和SonarQube windows-x86-64包装器.
SonarQube,无论是使用命令提示符作为管理员还是作为Windows服务通过StartSonar.bat运行,都会不断发出以下警告:
WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
The file is located on the path at the following location but
could not be loaded:
C:\sonarqube-5.0.1\bin\windows-x86-64\.\lib\wrapper.dll
Please verify that the file is readable by the current user
and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version
of the Wrapper with a 64-bit version of Java, or vica versa.
This is a 32-bit JVM.
Reported cause:
C:\sonarqube-5.0.1\bin\windows-x86-64\lib\wrapper.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
System signals will not be handled correctly.
Run Code Online (Sandbox Code Playgroud)
我在网上找到的唯一信息是2010年的一些JIRA,它们并没有真正帮助我.我无法在此Windows安装上创建声纳用户.我的CI环境中的所有其他工具都在Java 1.8 64位上运行,这意味着JAVA_HOME设置为64位JDK 1.8.我真的不想运行Java 32位和32位Wrapper.这意味着wrapper.conf顶部的JRE bin/java路径必须指定32位JRE.
我该怎么做才能摆脱这个警告?
小智 6
并非所有应用程序都使用JAVA_HOME变量,因此当您使用32位时,可以将JAVA_HOME指向64位版本.注意:注册表中的"Java_Home"键不是JAVA_HOME变量.
好吧,一种方法是使用..\windows-x86-64\UninstallNTService.bat卸载当前服务,并使用..\windows-x86-32\InstallNTService.bat安装32位版本.
如果它工作,你肯定有一个32位JVM.
| 归档时间: |
|
| 查看次数: |
13969 次 |
| 最近记录: |