Jython is integrated into the server. You no longer need to install it. This page will remain as a reference.
Jython Installation
You must use the precompiled version of Jython generated from their CVS code or checkout and build a copy from their CVS repository :pserver:anonymous@cvs.sourceforge.net:/cvsroot/jython
Install it on your computer, if it's a precompiled CVS version - just unpack the archive to selected folder.
To run the l2j server with Jython :
- Copy the file jython.jar into your L2J server directory (same folder as startserver.bat, server.cfg etc etc...)
- Edit your startserver.bat as following :
@java -Xmx128m -cp bsf.jar;bsh-2.0.jar;c3p0-0.8.4.5.jar;mysql-connector-java-3.0.16-ga-bin.jar;l2jserver.jar;jython.jar -Dpython.home=XXX -Dpython.path=YYY net.sf.l2j.Server @pause
Where XXX = The path of your Jython folder and Where YYY = The path of your L2J server folder
Cermi's Note: If the python.path should be a datapack folder, the **YYY** should be a datapack folder too. So if you have l2j installed in c:\l2j, the **YYY** is probably c:\l2j\data
For example, you have installed Jython in c:\Jython and your L2J server in c:\L2J
Then your startserver.bat will look like this :
@java -Xmx128m -cp bsf.jar;bsh-2.0.jar;c3p0-0.8.4.5.jar;mysql-connector-java-3.0.16-ga-bin.jar;l2jserver.jar;jython.jar -Dpython.home=c:/jython -Dpython.path=c:/l2j net.sf.l2j.Server @pause
That's all and now it should work properly
That is - add jython.jar in your classpath and specify -Dpython.home and -Dpython.path properties.
- -Dpython.home points to the directory where you installed Jython
- -Dpython.path points to your datapack directory
- -Dpython.verbose=debug may be additionally specified if you debug quests
Now unpack quests from datapack and try them.
