2004-04-12 08:32:32 +00:00
|
|
|
-----------------------------------
|
|
|
|
Instructions for building i2psam.jar
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
1) Requirements
|
|
|
|
|
|
|
|
You will need:
|
|
|
|
|
|
|
|
- jython - www.jython.org
|
|
|
|
|
|
|
|
Note that you don't need python to build the SAM server
|
|
|
|
|
2004-04-12 08:53:26 +00:00
|
|
|
IMPORTANT - when you're installing jython, and running
|
|
|
|
'java on jython_n.n.class',
|
2004-04-12 08:32:32 +00:00
|
|
|
make sure you run the java.exe that's in your SDK, not the one in your
|
|
|
|
JRE.
|
|
|
|
|
|
|
|
---------------------------------------------------------
|
|
|
|
|
|
|
|
2) Preparation
|
|
|
|
|
2004-04-12 08:53:26 +00:00
|
|
|
- add the main jython directory to your PATH. Test this by typing
|
|
|
|
'jythonc' from a shell prompt.
|
2004-04-12 08:32:32 +00:00
|
|
|
|
|
|
|
----------------------------------------------------------
|
|
|
|
|
|
|
|
3) Building
|
|
|
|
|
2004-04-12 08:53:26 +00:00
|
|
|
- type 'ant build'
|
2004-04-12 08:32:32 +00:00
|
|
|
|
|
|
|
----------------------------------------------------------
|
|
|
|
|
|
|
|
4) Installing
|
|
|
|
|
|
|
|
Copy i2psam.jar to wherever the jar files live on your i2p installation,
|
|
|
|
usually <i2pbasedir>/lib
|
|
|
|
|
|
|
|
Find jython.jar, and copy it there too
|
|
|
|
|
|
|
|
----------------------------------------------------------
|
|
|
|
|
|
|
|
5) Running
|
|
|
|
|
|
|
|
(assuming that you're putting the start script into your main i2p
|
|
|
|
runtime directory, where the I2P jars live in a 'lib' subdirectory)
|
|
|
|
|
|
|
|
You will need to launch i2psam.jar with a command like:
|
|
|
|
|
|
|
|
java -cp lib/jython.jar:lib/i2p.jar:lib/mstreaming.jar:lib/i2psam.jar i2psam
|
|
|
|
|
|
|
|
or on windows,
|
|
|
|
|
|
|
|
java -cp lib\jython.jar;lib\i2p.jar;lib\mstreaming.jar;lib\i2psam.jar i2psam
|
|
|
|
|