jastrachan | 20 Jun 06:46 2004
Picon

Re: Cannot create new Groovy class

Does your CLASSPATH include the current directory? There's definitely a  
B.class in the current directory right?

On 19 Jun 2004, at 20:08, Stepan Koltsov wrote:
> Hello,
>
> I don't understand, what happens. Can anybody help me?
>
> # cat A.java
> public class A {
> } /// end of A
> # cat B.groovy
> public class B {
> } /// end of B
> # javac A.java
> # groovyc B.groovy
> # cat c.groovy
> a = new A();
> b = new B();
> # groovy c.groovy
> Caught: General error during class generation: No such class: B in  
> constructor call for class: c. At [2:5] c.groovy
>         at  
> org.codehaus.groovy.control.ProcessingUnit.fail(ProcessingUnit.java: 
> 466)
>         at  
> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(Co 
> mpilationUnit.java:949)
>         at  
> org.codehaus.groovy.control.CompilationUnit.classgen(CompilationUnit.ja 
> va:591)
>         at  
> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.jav 
> a:485)
>         at  
> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:227)
> ...
>
> S.
>
>

James
-------
http://radio.weblogs.com/0112098/


Gmane