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.
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)
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.
Fixed. http://scripting.netbeans.org/source/browse/scripting/groovy/grails/src/org/netbeans/modules/groovy/grails/ExternalGrailsServer.java?r1=1.12&r2=1.13 http://scripting.netbeans.org/source/browse/scripting/groovy/grails/src/org/netbeans/modules/groovy/grails/GrailsServerRunnable.java?r1=1.7&r2=1.8
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.
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
User Christian Helmbold verfied that this one is fixed.
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
per #desc6