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 136877 - face an error when executing groovy
Summary: face an error when executing groovy
Status: VERIFIED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-10 09:02 UTC by emillekorea
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 emillekorea 2008-06-10 09:02:16 UTC
I upgraded into Hudson development version to use Groovy and Grails.

I'm using 
Hudson Dev version : 20080608182253
Groovy & GRails plug in. 

when I developing with Grails Appplication on Netbeans, when I execute groovy,  
I get an error  
org.netbeans.modules.groovy.support.sccriptExecSupport.getClassPath(ScriptExecSupport.java:271)

However, with Grails, I can run grails web-app. just only has a problem in groovy. 

---------------------------
I want to devlope under the cicumstance combined java and groovy.Actually, 
I don know what version I have to use. who let me know which version and plugin is best?

Sincerely kit  



with JAVA application on Netbeans, when I execute groovy script or file, 

D:\it_lib\groovy-1.5.6\bin\groovy.bat D:\myproject2\JavaApplication4\src\javaapplication4\NewGroovyScript.groovy

ERROR: Environment variable JAVA_HOME has not been set.
Attempting to find JAVA_HOME from PATH also failed.
Please set the JAVA_HOME variable in your environment
to match the location of your Java installation.

However, on window OS, I can check out JAVA_HOME setted properly.
Comment 1 emillekorea 2008-06-10 09:12:02 UTC
when I tried to get the G&G plug-in available in the version of netbeans, I got some dependency errors. That's why I
downloaded Hudson trunk java 2206 and installed. no problem to install plug-in. however can not execute groovy. 

   
Comment 2 martin_adamek 2008-07-22 13:20:27 UTC
Don't use Execute script action, use Run File or Run Project in Java SE project instead. That will work for you. Execute script will be removed from files located 
under project.
Comment 3 Lukas Jungmann 2008-10-13 18:07:37 UTC
v.