Author eaaltonen
Recipients eaaltonen
Date 2015-04-27.07:55:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This seems to be some sort of classloading issue that occurs both when running the sample program in the Eclipse IDE and with "mvn exec:java..."

Running (in Linux) with jython.jar in the boot classpath works without problems.

Manually registering the PyScriptEngineFactory to the ScriptEngineManager will make PyScriptEngineFactory.getScriptEngine() fail with a ClassNotFoundException.

Calling getScriptEngine() manually before calling scriptEngineManager.getEngineByName("python") will make the classloaders happy again, but the next failure is

Exception in thread "main" ImportError: Cannot import site module and its dependencies: No module named site
Date User Action Args
2015-04-27 07:55:38eaaltonensetmessageid: <>
2015-04-27 07:55:38eaaltonensetrecipients: + eaaltonen
2015-04-27 07:55:38eaaltonenlinkissue2339 messages
2015-04-27 07:55:37eaaltonencreate