Bug 864252
| Summary: | JON server fails to find JVM if JAVA_HOME path contains spaces | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> |
| Component: | Core Server | Assignee: | RHQ Project Maintainer <rhq-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Mike Foley <mfoley> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | JON 3.0.0 | CC: | dsteigne, loleary, mazz, myarboro |
| Target Milestone: | --- | ||
| Target Release: | JON 3.2.0 | ||
| Hardware: | All | ||
| OS: | Windows | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 769604 | Environment: | |
| Last Closed: | 2013-05-24 19:37:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 769604 | ||
| Bug Blocks: | |||
|
Description
Larry O'Leary
2012-10-09 01:31:05 UTC
I need to know *exactly* what you set JAVA_HOME to. I just tried it and the rhq-server.bat worked BUT! only if I did not wrap my env var value in quotes. Things WORKED when I used this command line to set my JAVA_HOME: set JAVA_HOME=C:\Program Files\Java\jre7 If I echoed %JAVA_HOME% I saw this: > echo %JAVA_HOME% C:\Program Files\Java\jre7 Notice there are NO quotes in the value. However, things FAILED to work when I did this: set JAVA_HOME="C:\Program Files\Java\jre7" > echo %JAVA_HOME% "C:\Program Files\Java\jre7" When I ran "rhq-server.bat status", I got this error message: There is no JVM available. Please set RHQ_SERVER_JAVA_HOME or RHQ_SERVER_JAVA_EXE_FILE_PATH appropriately. Turn on debug and see what your script says. So do this: set RHQ_SERVER_DEBUG=true and then run rhq-server.bat again. You should see what values it wants to use. When using quotes in the JAVA_HOME value, you'll see something like this (which is wrong): RHQ_SERVER_JAVA_EXE_FILE_PATH: "C:\Program Files\Java\jre7"\bin\java.exe The quotes appear to be messed up. So, in short, when you define JAVA_HOME, do NOT wrap the value in quotes. I'm putting this with a NEEDINFO to the reporter to confirm this work. If it does, we should close this as NOTABUG. You are correct. In the original case that raised this issue, JAVA_HOME was set as follows:
set JAVA_HOME="C:\Program Files (x86)\Java\jdk1.6.0_30"
I have updated the knowledge information and am marking this as NOTABUG.
|