Hi Felix,

I tried the above but the exception continues.

I did the following ,

            ClassLoader c = Thread.currentThread().getContextClassLoader();
            c.loadClass("scala.tools.nsc.Interpreter");

Thread.currentThread().setContextClassLoader(c.getClass().getClassLoader());

I think the scala library is not loading properly.

When I do the following in the eval method the interpreter works.

"interpreterSettings.classpath().value_$eq("/home/janandith/.m2/repository/org/scala-lang/scala-library/2.7.1/scala-library-2.7.1.jar")"

interpreterSettings is the Settings Class passed to the Interpreter when
instantiated.

janandith

Reply via email to