Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Peter Gromov
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Peter Gromov
    2 years ago (27 May 2009 05:36)
  • Updated by   root
    2 years ago (17 Jan 2010 21:15)
  • Jira: IDEADEV-37192
    (history, comments)
 
IDEA-49175 Unable to use Grails without set JAVA_HOME, PATH manually (reopen)
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Re-open [GRVY-2154]

I'm still causing the problem with me.
I'm unset JAVA_HOME, and remove all Java-related from environment settings.

Now IntelliJ 8.1.2 try to set JAVA_HOME as I configured in General Settings. But I found that it FAILED set JAVA_HOME environment variable properly on my machine.

[C:\grails-1.1/bin/grails.bat, create-domain-class, Blabla]

ERROR: JAVA_HOME is set to an invalid directory: C:/jdk1.6.0_10

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.


I think that JAVA_HOME value is should be C:\jdk1.6.0_10 on my environment, it should consult with path.separator before use in external command or batch file like this.

Environment: IntelliJ IDEA 8.1.2 #9852 with JetGroovy 8.0 on Windows XP SP3

Issue was resolved
Comments (5)
 
History
 
Linked Issues (?)
 
Ekkasit Takoungsakdakul
  Ekkasit Takoungsakdakul
27 May 2009 05:37
2 years ago
Project's General Settings
Ekkasit Takoungsakdakul
  Ekkasit Takoungsakdakul
27 May 2009 05:38
2 years ago
SDK Settings
Ekkasit Takoungsakdakul
  Ekkasit Takoungsakdakul
27 May 2009 05:40
2 years ago
Grails console
Lukas Zapletal
  Lukas Zapletal
18 Sep 2009 14:50
2 years ago
Yes, this is **bad**. How to solve this?
Lukas Zapletal
  Lukas Zapletal
18 Sep 2009 15:11
2 years ago
Aaaah its fixed in 8.1.3! Ok.