Skip to content

Instantly share code, notes, and snippets.

@adorsk
Created November 26, 2012 03:25
Show Gist options
  • Save adorsk/4146455 to your computer and use it in GitHub Desktop.
Save adorsk/4146455 to your computer and use it in GitHub Desktop.
jython launcher bat, w/ zxjdbc driver
@echo off
set CP=
for /r %%i in (javalib\*.jar) DO call :concat %%i
set JYTHONPATH=%CP%
set PYTHONPATH=%CP%
set CLASSPATH=%CP%
rem NEED TO RUN JYTHON via org.python.util.jython, otherwise zxJDBC can't find drivers on classpath.
java -classpath %CP%;jython.jar org.python.util.jython test.py
goto :eof
:concat
set CP=%CP%;%1
goto :eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment