This is taken from #347842 and still affects groovy-1.8.5 groovy ignores --classpath given on command line. Reproducible: Always Steps to Reproduce: # echo 'class A {}' > A.groovy # groovy --classpath . -e 'new A()' Actual Results: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: script_from_command_line: 1: unable to resolve class A @ line 1, column 1. new A() ^ 1 error Expected Results: no error This one works correctly: # CLASSPATH=. groovy -e 'new A()'
*** This bug has been marked as a duplicate of bug 347842 ***