Aspiring Independant (a.k.a. not employed to do anything I should mention here) Massachusetts born, Yorkshire based builderGeek.

Report RSS How to add a jar at run-time to jython ...

Posted by on

... which is great when you just want to run a piece of programming and not deal with setting up a program for the purpose of testing a lib.

sys.path.append('./jars/sqljdbc4.jar')

... that's it. Replace ./jars/sqljdbc4.jar with whatever the path to you jar is.

Oh ... you have to import sys. Yeah if you don't import sys there's really no reason.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: