Bug 431681
Summary: | Fix java detection on Windows XP | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Ruben Kerkhof <ruben> | ||||
Component: | Directory Console | Assignee: | Rich Megginson <rmeggins> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Chandrasekar Kannan <ckannan> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 1.1.0 | CC: | benl, nkinder, yzhang | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Windows | ||||||
Whiteboard: | |||||||
Fixed In Version: | 8.1 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-04-29 23:02:28 UTC | Type: | --- | ||||
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: | |||||||
Bug Blocks: | 249650, 493682 | ||||||
Attachments: |
|
Description
Ruben Kerkhof
2008-02-06 13:22:52 UTC
This may be because of using command.exe vs command.com http://ask-leo.com/whats_the_difference_between_commandcom_and_cmdexe.html s/command.exe/command.com Index: fedora-idm-console.bat =================================================================== RCS file: /cvs/dirsec/fedora-idm-console/win/fedora-idm-console.bat,v retrieving revision 1.2 diff -u -8 -b -r1.2 fedora-idm-console.bat --- fedora-idm-console.bat 14 Dec 2007 21:43:23 -0000 1.2 +++ fedora-idm-console.bat 30 Jan 2009 01:31:04 -0000 @@ -18,17 +18,17 @@ rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK rem set the JAVA to use here rem set JAVA=C:\j2sdk1.4.2_15\bin\java if not "%JAVA%foo"=="foo" goto launch -where java > nul 2>&1 || goto findjre +java -version > nul 2>&1 || goto findjre set JAVA=java goto launch :findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk Reviewed by: nkinder (Thanks!) Fix Description: Just use "java -version" to test for the presence of java Platforms tested: Windows 2003 server Flag Day: no Doc impact: no Created attachment 330698 [details]
cvs commit log
Tested on both win2003 and winxp, both passed. test steps: 1. run java -version -- pass, output shows java 1_6_10 2. run rhds window console (not fedora console) -- pass, console launches An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-0455.html |