Did you add the REPL (and, maybe, the compiler?) to the classpath? I imagine that if you don't specify the dependency and bring only the library, it would definitely not work.
If you did do that, perhaps if you could be more forthcoming with details on how you are doing this test?