This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122633 - Grails project wizard fails on Win XP
Summary: Grails project wizard fails on Win XP
Status: VERIFIED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: schmidtm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-23 13:22 UTC by martin_adamek
Modified: 2008-10-30 14:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin_adamek 2007-11-23 13:22:06 UTC
Report from user:
Here is what I get when trying to create a new Grails project. The traceback
contains a czech fragments as I have czech WinXP ... 

Generaly it seams that it calls 'grails' and not a 'grails.bat' on my Windows
machine. Then it fails to start it. The path in traceback
"C:\java\grails\bin\grails" is ok but should be "C:\java\grails\bin\grails.bat"

java.io.IOException: CreateProcess error=193, %1 není platná aplikace typu Win32
       at java.lang.ProcessImpl.create(Native Method)
       at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
       at java.lang.ProcessImpl.start(ProcessImpl.java:30)
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
Caused: java.io.IOException: Cannot run program "C:\java\grails\bin\grails" (in
directory "C:\Documents and Settings\davidm\Dokumenty\NetBeansProjects"):
CreateProcess error=193, %1 není platná aplikace typu Win32
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
       at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:199)
       at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:151)
       at
org.netbeans.modules.groovy.grails.GrailsServerRunnable.run(GrailsServerRunnable.java:75)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 martin_adamek 2007-11-23 15:09:45 UTC
Easy workaround is to invoke all generators from command line - even for project. Once project is generated, it can be opened in NetBeans, no extra 
metadata is needed.
Comment 3 deamon 2007-12-09 11:34:46 UTC
I opened the "New Project" and choosed "Groovy" in the categories and "Grails Application". Afterwards I typed in a name
for the project and clicked "finish". Then for a very short time (too short!) a message appears, the window disappears -
and that's all. No project ist created. 

Then I tried the mentioned workaround and got the message:
"ERROR: Environment variable JAVA_HOME has not been set.

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

But JAVA_HOME is set correctly. Tested with Version 1.0 of the Groovy plug-in.
Comment 4 schmidtm 2007-12-14 10:25:42 UTC
Hi deamon,

i have a hard time to reproduce this bug. In fact i cannot. Can you provide me your values for %JAVA_HOME%,
%GRAILS_HOME% etc. to get this one fixed. Or better, drop me a mail under schmidtm at sun dot com.

cheers,

Matthias
Comment 5 schmidtm 2008-01-08 15:32:52 UTC
User Christian Helmbold verfied that this one is fixed.
Comment 6 Quality Engineering 2008-05-20 05:04:36 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #206 build
Changeset: http://hg.netbeans.org/main/rev/71e623756668
User: Martin Adamek <martin_adamek@netbeans.org>
Log: #122633: Grails project wizard fails on Win XP
Comment 7 Lukas Jungmann 2008-09-29 15:22:40 UTC
per #desc6