> I just installed Groovy 1.5.4 with the Windoz installer on Vista, opened
> a cmd window and typed "groovyc" as I used to with Groovy 1.0. I get a
> security exception. If I double click on "groovyc.bat" it works. Here is
> the error and my environment variable setting. Any idea of what's going on?
>
> Thanks
>
> Fred
>
> C:\Users\Fred>groovyc
> java.lang.SecurityException: Prohibited package name: java.lang
> ...
> C:\Users\Fred>set
> ALLUSERSPROFILE=C:\ProgramData
> ANT_HOME=C:\ant-1.7.0
> APPDATA=C:\Users\Fred\AppData\Roaming
> CLASSPATH=.;C:\jdk1.6.0_02\jre\lib\rt.jar;C:\Program
> Files\Java\jre1.6.0_02\lib\ext\QTJava.zip
> ...
It is illegal to have rt.jar on your CLASSPATH (it contains classes that
begin with "java.lang").
Jim
---------------------------------------------------------------------
To unsubscribe from this list please visit:
> Thanks Jim. I removed rt.jar from the classpath and it works now.
>
> Is it an issue for just for Groovy or any java program in general?
Any Java. To define classes in the "java.lang" package you have to use
the -Xbootclasspath option of the java executable.
> Fred Janon wrote:
>
>> Thanks Jim. I removed rt.jar from the classpath and it works now.
>>
>> Is it an issue for just for Groovy or any java program in general?
>
>
> Any Java. To define classes in the "java.lang" package you have to use
> the -Xbootclasspath option of the java executable.
Actually I mean to say defining classes in any package beginning "java.".