我是Sonar的新用户。
我在java中有一个小项目,我想用Ant分析。
我正在尝试安装Sonal 2.13
我执行 BIN \ windows的X86-64 \ StartSonar.bat
我有Java 1.6
它给了我错误
STATUS | wrapper | 2012/02/06 10:48:09 | --> Wrapper Started as Console
STATUS | wrapper | 2012/02/06 10:48:09 | Launching a JVM...
INFO | jvm 1 | 2012/02/06 10:48:10 | Error: could not open `C:\Program Files\Java\jre7 \lib\amd64\jvm.cfg'
ERROR | wrapper | 2012/02/06 10:48:10 | JVM exited while loading the application.
STATUS | wrapper | 2012/02/06 10:48:14 | Launching a JVM...
INFO | jvm 2 | 2012/02/06 10:48:14 | Error: could not open `C:\Program Files\Java\jre7\lib\amd64\jvm.cfg'
ERROR | wrapper | 2012/02/06 10:48:14 | JVM exited while loading the application.
STATUS | wrapper | 2012/02/06 10:48:18 | Launching a JVM...
INFO | jvm 3 | 2012/02/06 10:48:18 | Error: could not open `C:\Program Files\Java\jre7\lib\amd64\jvm.cfg'
ERROR | wrapper | 2012/02/06 10:48:18 | JVM exited while loading the application.
STATUS | wrapper | 2012/02/06 10:48:23 | Launching a JVM...
INFO | jvm 4 | 2012/02/06 10:48:23 | Error: could not open `C:\Program Files\Java\jre7\lib\amd64\jvm.cfg'
ERROR | wrapper | 2012/02/06 10:48:23 | JVM exited while loading the application.
STATUS | wrapper | 2012/02/06 10:48:27 | Launching a JVM...
INFO | jvm 5 | 2012/02/06 10:48:27 | Error: could not open `C:\Program Files\Java\jre7\lib\amd64\jvm.cfg'
ERROR | wrapper | 2012/02/06 10:48:27 | JVM exited while loading the application.
FATAL | wrapper | 2012/02/06 10:48:27 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2012/02/06 10:48:27 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2012/02/06 10:48:27 | <-- Wrapper Stopped
我不明白这一点。我正在使用java 1.6; jre 6
如何解决这个问题
谢谢&amp;问候
答案 0 :(得分:2)
首先,看起来PATH中的Java版本是Java 7,而不是Java 6。 其次,也许你没有运行Windows 64位,而是32位,所以你应该尝试在“windows-x86-32”文件夹中运行StartSonar.bat脚本,如果是这样的话。