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 212026 - Problems with running Groovy script
Summary: Problems with running Groovy script
Status: RESOLVED INCOMPLETE
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-03 14:24 UTC by Martin Janicek
Modified: 2012-07-10 08:12 UTC (History)
2 users (show)

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 Janicek 2012-05-03 14:24:11 UTC
See issue 211564 for some background. Looks like it's possible that when following those 4 steps, the groovy script might not be run correctly.

1. Create Java Application project
2. Create new Groovy Script
3. Right click on script node and use 'Run File'

--> You should see following output:

Hello root!
BUILD SUCCESSFUL (total time: 0 seconds)

--> ..but DaveSc can see following output:

run-single:
Picked up _JAVA_OPTIONS
Error: Could not find or load main class javaapplication3.NewGroovyScript
Java Result:1
BUILD SUCCESSFUL (total time: 1 second)
Comment 1 Martin Janicek 2012-05-03 14:34:56 UTC
DaveSc, what's the version of Java you're using in this project? I mean when going to the project properties/libraries, there is a Java Platform at the top of the panel. And could you also see the Groovy 1.8.6 - groovy-all.jar in the library compile-time dependencies?
Comment 2 Martin Janicek 2012-07-10 08:12:30 UTC
Closing this issue as INCOMPLETE. I've never been able to reproduce the problem (and this is actually one of the most basic actions, but no-one else ever report the same problem so it has to be related to some broken IDE/Groovy configuration).

Without some additional information I can't do anything about it right now. Please try to reproduce the problem with "Verbosity level" set to Debug (Tools/Options/Java/Ant) and attach related log