Author
jython engine: implementation fails
Arthur Burma
Greenhorn
Joined: Nov 12, 2009
Posts: 16
posted Dec 02, 2009 05:33:47
0
Hi,
In order to use python in java project, i've added the jython following dependency :
But , when i call engine factories :
i get the following engines , but not jython ...
ScriptEngineFactory Info
Script Engine: Mozilla Rhino (1.6 release 2)
Engine Alias: js
Engine Alias: rhino
Engine Alias: JavaScript
Engine Alias: javascript
Engine Alias: ECMAScript
Engine Alias: ecmascript
Language: ECMAScript (1.6)
ScriptEngineFactory Info
Script Engine: AppleScriptEngine (1.0)
Engine Alias: AppleScriptEngine
Engine Alias: AppleScript
Engine Alias: OSA
Language: AppleScript (2.0.1)
regards;
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35253
posted Dec 02, 2009 06:07:35
0
Are you certain that the Jython scripting engine is in the classpath when you run that code?
Have you tried registering it through the ScriptEngineManager API?
Android apps – ImageJ plugins – Java web charts
Arthur Burma
Greenhorn
Joined: Nov 12, 2009
Posts: 16
posted Dec 02, 2009 06:58:08
0
The classpath is the problem, because when i add jython jar as external dependency , jython engine becomes available.
But then, i use the mvn dependency for jython 2.5.0 (mvn 2.2.1) , ScriptEngine is no avilable anymore...
I had first placed this post in maven forum, but no clue at the moment,
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35253
posted Dec 02, 2009 07:50:17
0
Please do not post the same question to multiple forums: CarefullyChooseOneForum
Let's continue the discussion in this duplicate thread .
It seems as if this has nothing to do with Jython, but is a Maven configuration issue.
subject: jython engine: implementation fails