Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Groovy setup apparently not right - I could use some help please

 
Bill Johnston
Ranch Hand
Posts: 201
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Experienced Java programmer - brand new to groovy - just started learning this week

Just downloaded and set up Groovy-1.7.5 from the http://groovy.codehaus.org download site.

Read the installation instructions - avoided install into 'Program Files' as per instructions

Checked that GROOVY_HOME set in SYSTEM environment variables and bin directory properly added to PATH SYSTEM environment variables.

Made sure that all the other environment variables were undisturbed.

I opened up a command prompt - as usual - and re-checked the environment variables via the 'set' command ... all seems good.

However I am getting:

java.lang.SecurityException: Prohibited package name: java.util

... when trying to execute groovyConsole.bat from the bin directory.

And I am getting:

java.lang.SecurityException: Prohibited package name: java.lang

... when trying to execute just groovy

I can't locate any information on this anywhere on this kind of error.

Any help is appreciated. Regards,

 
Bill Johnston
Ranch Hand
Posts: 201
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah! I finally found it. This link in case anyone else needs it:

http://jira.codehaus.org/browse/GROOVY-1386

... Had to remove rt.jar from CLASSPATH.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic