Hi,

This might be obvious to many on this list, but for some it might be of
interest. When my friend was going to try my JCC wrapped library on a
Windows computer we had lots of trouble, I don't know if it was java
versions, compilers or just bad luck.

I have now found the WinPython, no-install, single folder windows python
distribution, and made a JCC + java engine encapsluated in it. Now I can
zip that and transfer it to another computer.

My recipie is:
Install WinPython from:
http://code.google.com/p/winpython/

take the java engine you are using, like C:\Program Files
(x86)\Java\jdk1.6.0_35 and copy it to the winpython tools folder, rename it
to jdk

Add in the winpython scripts/env.bat:

set
PATH=%WINPYDIR%\..\tools\jdk\jre\bin\client;%WINPYDIR%\..\tools\jdk\bin;%WINPYDIR%\..\tools\jdk\lib;%PATH%
set JAVA_HOME=%WINPYDIR%\..\tools\jdk
set JAVAHOME=%WINPYDIR%\..\tools\jdk
set JCC_JDK=%WINPYDIR%\..\tools\jdk

start a console using the cmd.bat in scripts, and build your JCC as an egg.
Use the WinPython installer to install the egg.

in the same console, wrap your java libraries, install as eggs.

This gives a no-install copy of my setup, including JCC and wrapped
library. Probably it cannot be distributed due to the java engine license
(i think?), but good for moving between computers/reinstalls and such.

Regards
/Petrus

Reply via email to