GeeCON Prague 2014*
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


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: 42022
    
  64
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:
 
GeeCON Prague 2014
 
subject: maven: dependency not added to the classpath during runtime