wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes maven: dependency not added to the classpath during runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven: dependency not added to the classpath during runtime" Watch "maven: dependency not added to the classpath during runtime" New topic
Author

maven: dependency not added to the classpath during runtime

Arthur Burma
Greenhorn

Joined: Nov 12, 2009
Posts: 16
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: 41170
    
  45
I edited the subject to make it clear what the problem is: it has nothing to do with Jython or scripting per se - it's that the jar dependency is not part of the classpath at runtime.


Ping & DNS - my free Android networking tools app
Arthur Burma
Greenhorn

Joined: Nov 12, 2009
Posts: 16
the jython jar v2.5.0 downloaded from central repository is not complete, it doesn't embed ScriptManager factories, so jython with maven works provided that a manual setup is done:
 
wood burning stoves
 
subject: maven: dependency not added to the classpath during runtime
 
Similar Threads
Funny exception with StringBuffer with jsf
Richfaces + Spring + Maven Setup help
Where do I get java-engine.jar to make new ScriptEngineManager().getEngineByName("java"); work
Could not resolve dependencies for maven project
jython engine: implementation fails