noob Getting Started with Groovy (not)

Hello,

I am trying to get started with Groovy, I have almost no raw Java experience. I have done some groovy scripting for simple stuff. I have done quite a lot of work with Flex 3 builder and Actionscript. But I keep getting stopped at what I am taking for dependency issues.

I was able to get a groovy project setup and I can run simple groovy scripts, but I can't seem to understand how to use external libraries I am trying to using HTTPBuilder, but I keep getting class not found errors. I am missing something about imports and setting library dependancies. And it is kindof making me crazy

Here is a video of what is happening. If anyone can offer me any advice I would really appreciate it. or point me to some basic documentation on how to resolve dependencies and work with imports I would really be  grateful!

Thanks

Todd


3 comments

First of all, you seem not to need HttpResponseException, you may just
remove that import. Do you have only one module? Could you copy/paste
the full console output here?

0

Thank you for responding...  

I have been able to get past that problem and I think I am getting somewhere, but I am still confused about how dependancies work.

I seem to be able to resolve them now, but it feels funky.  When ever I encounter a missing class definition error, I go to "project structure" and add module library and point it at the jar file containing that class.

Is there a better way to do this?  I am on the right track?

Thanks

Todd

0

You are on the right track. The library need not consist of just one
jar, you can add them all at once. Or they may be already added in one
of your project or global libraries, you may try to add them to your
module instead.

0

Please sign in to leave a comment.