Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.5.5, 1.6-beta-1
-
Component/s: None
-
Labels:None
-
Environment:Windows XP Groovy 1.0-beta-6
-
Number of attachments :
Description
On my system I have JAVA_HOME set to "C:\JDK\"
This results in an error message when starting GROOVY:
"JAVA_HOME not set"
When I change JAVA_HOME to "C:\JDK" everything works fine.
This can be a litte disturbing for new users and should be easy to fix, I guess.
Greetings,
Malte
Issue Links
| This issue duplicates: | ||||
| GROOVY-636 | JAVA_HOME with Backslash at end results in Error JAVA_HOME not set |
|
|
|
I think it's still a problem and important, because in other cases/tools it's not obligatory to define the path without a trailing backslash. e.g. Even the GRAILS_HOME is checked for a trailing backslash.
I've done a modification of the file %GRAILS_HOME%\bin\startGrails.bat at section ":have_JAVA_HOME" I've added following:
:have_JAVA_HOME
@rem Remove trailing slash from JAVA_HOME:
if "%JAVA_HOME:~-1%"=="\" SET JAVA_HOME=%JAVA_HOME:~0,-1%
If needed I can also create a patch for Grails 1.0.2