jdaugherty opened a new issue, #159:
URL: https://github.com/apache/grails-intellij-plugin/issues/159
This report relates to IU-135-698; win8.1 all latest patches.
My Java SDK Home path set in the IntelliJ settings is:
R:\Program Files\Java\jdk1.6.0_45
If I press ^-Alt-G, then the "Start Grails Console in Interactive Mode", I
get a cmd console containing:
```
ERROR: JAVA_HOME is set to an invalid directory: R:/Program
Files/Java/jdk1.6.0_
45
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
```
Note the substitution of win-style '\' for *nix-style '/' path separators. I
assume that this is the problem...
In the same window, I can do:
```
X:\DEVELOPMENT\IOS23\trunk>dir %JAVA_HOME%
Parameter format not correct - "Program".
X:\DEVELOPMENT\IOS23\trunk>dir "%JAVA_HOME%"
Volume in drive R is REST
Volume Serial Number is 5A9C-D6FE
Directory of R:\Program Files\Java\jdk1.6.0_45
26/01/2014 04:40 PM <DIR> .
26/01/2014 04:40 PM <DIR> ..
26/01/2014 04:40 PM <DIR> bin
01/04/2013 04:24 PM 3,409 COPYRIGHT
26/01/2014 04:40 PM <DIR> include
26/01/2014 04:40 PM <DIR> jre
26/01/2014 04:40 PM <DIR> lib
26/01/2014 04:40 PM 41 LICENSE
26/01/2014 04:40 PM 125 README.html
01/04/2013 04:26 PM 19,694,045 src.zip
26/01/2014 04:40 PM 172,117 THIRDPARTYLICENSEREADME.txt
5 File(s) 19,869,737 bytes
6 Dir(s) 454,866,485,248 bytes free
X:\DEVELOPMENT\IOS23\trunk>
```
A work-around MIGHT be to use R:\Progra~1\Java\jdk1.6.0_45, but the settings
GUI will not allow one to specify this by hand.
For reference:
```
X:\DEVELOPMENT\IOS23\trunk>dir /x r:
Volume in drive R is REST
Volume Serial Number is 5A9C-D6FE
Directory of R:\
10/04/2014 11:44 AM <DIR> BIN
15/04/2014 08:27 PM <DIR> DEVELO~1 DEVELOPMENT
15/04/2014 02:13 PM <DIR> DEVTOOLS
22/10/2013 02:15 PM <DIR> PROGRA~1 Program Files
11/04/2014 10:21 PM <DIR> PROGRA~2 Program Files (x86)
15/11/2013 08:17 PM <DIR> RECORD~1 Recorded TV
03/04/2014 09:03 PM <DIR> TEMP
30/10/2012 08:54 AM <DIR> Users
0 File(s) 0 bytes
8 Dir(s) 454,866,419,712 bytes free
X:\DEVELOPMENT\IOS23\trunk>
```
If I bring up a cmd window outside of IntelliJ, I can do:
```
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\<hidden-personal-data>>echo %JAVA_HOME%
%JAVA_HOME%
C:\Users\<hidden-personal-data>>
```
I always keep JAVA_HOME unset on my PC so that my path is uncluttered. I set
is when needed, as needed.
---
*Imported from
[IDEA-124029](https://youtrack.jetbrains.com/issue/IDEA-124029) · Type: Bug ·
Votes: 4*
*Comments, attachments, dates and reporter are not part of the export —
follow the link above for the full history.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]