• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

References to groovy files aren't being recognized in java file

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to Groovy and am experiencing a problem to where a java file is not recognizing groovy files in the same project (causing errors with my import statements). It's weird, on my co-workers machine he is experiencing the exact same thing but he is still able to execute.

I tried cleaning and rebuilding but haven't had luck on this. Any thoughts?
[ October 27, 2008: Message edited by: Bear Bibeault ]
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"awallhere", welcome to the Java Ranch. We don't have many rules, but we do have a naming policy which requires a first and last name.

Full Details: http://www.javaranch.com/name.jsp


So, when you say that the groovy files aren't being recognized, do you mean that your IDE is giving you red squiggly lines under the import statements or that you're trying to execute the code but gives you an exception... or both?
 
Anthony Bailey
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually both. My co-worker is able to continue execution but I get the errors related to the import statements. He also has the "red squiggly lines"

Thanks!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"awallhere", Marc's request that you change your display name to adhere to JavaRanch standards was not a suggestion. Valid display names are mandatory for participation on the Ranch. Please change your display name as instructed prior to your next post.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
 
Marc Peabody
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, for the execution issues my guess is your friend has the groovy jar set in his project classpath while you do not.

As far as the red squigglies go, which IDE are you using? Eclipse? NetBeans? IntelliJ?
 
Anthony Bailey
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The issue is resolved. We kept doing different combinations of cleans, builds, and changing/deleting groovy pref files......although we are not sure why it happened, I am at least able to continue development. BTW, we are using RSA v7.0

Thanks for helping!
 
Everyone is a villain in someone else's story. Especially this devious tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic