2012-12-19 01:47:48 +00:00
{% extends "global/layout.html" %}
2011-06-21 22:36:41 +00:00
{% block title %}Manually Installing the Java Wrapper{% endblock %}
{% block content %}
2013-02-01 20:12:08 +00:00
< h1 > {% trans %}Manually Installing the Java Wrapper{% endtrans %}< / h1 >
2011-06-21 22:36:41 +00:00
2013-02-01 20:12:08 +00:00
< p > {% trans -%}
The installation package for the < a href = "{{ url_for('downloads_list', lang=g.lang) }}" > I2P router< / a > comes
2011-12-21 18:20:41 +00:00
with a Java wrapper for the most common architectures. If your system is not
supported by our installer— or if you want to update the wrapper to a
newer version— the following steps describe installing the wrapper manually.
2013-02-01 20:12:08 +00:00
{%- endtrans %}< / p >
2011-06-21 22:36:41 +00:00
2011-12-21 18:20:41 +00:00
< ul >
2013-02-01 20:12:08 +00:00
< li > {% trans %}Check Tanuki Software's < a href = "http://wrapper.tanukisoftware.com/doc/english/download.jsp#stable" > download page< / a >
2011-12-21 18:20:41 +00:00
for your platform. Is your platform listed? If so, you're in
luck! Download the most recent version of the Community Edition for your OS and
2013-02-01 20:12:08 +00:00
CPU and move to < a href = "#packaged" > the next step< / a > {% endtrans %}< / li >
< li > {% trans %}If your platform does not have an already compiled wrapper available, you
2011-12-21 18:20:41 +00:00
may be able to compile it yourself. If you are willing to have a go at it, move
2013-02-01 20:12:08 +00:00
on to < a href = "#compiling" > compiling< / a > the wrapper for your system.{% endtrans %}< / li >
2011-12-21 18:20:41 +00:00
< / ul >
2013-02-01 20:12:08 +00:00
< h2 id = "packaged" > {% trans %}Using existing binaries{% endtrans %}< / h2 >
{% trans %}In the steps below, $I2P means < em > the location I2P was installed to< / em > .{% endtrans %}
2011-06-21 22:36:41 +00:00
< ol >
< li > < code > tar xzf wrapper-*.tar.gz< / code > < / li >
< li > < code > cp wrapper*/bin/wrapper $I2P/i2psvc< / code > < / li >
< li > < code > cp wrapper*/lib/wrapper.jar $I2P/lib< / code > < / li >
< li > < code > cp wrapper*/lib/libwrapper.so $I2P/lib< / code > < / li >
2013-02-01 20:12:08 +00:00
< li > {% trans %}Try to start I2P using {% endtrans %}< code > $I2P/i2prouter start< / code > < / li >
2011-06-21 22:36:41 +00:00
< li > < code > tail -f /tmp/wrapper.log< / code > and look for any problems.< / li > < / ol >
2013-02-01 20:12:08 +00:00
{% trans %}If this did not work you'll need to use < code > runplain.sh< / code > to start I2P.{% endtrans %}
< h2 id = "compiling" > {% trans %}Compiling from source{% endtrans %}< / h2 >
{% trans %}These steps worked to compile the wrapper for use on a mipsel system running Debian. The steps < strong > will< / strong > need to be altered for your system.{% endtrans %}
2011-12-21 18:20:41 +00:00
< ol >
2013-02-01 20:12:08 +00:00
< li > {% trans %}Download the source archive for the community version of the wrapper from < a href = "http://wrapper.tanukisoftware.com/downloads" > wrapper download page< / a > .{% endtrans %}< / li >
< li > {% trans %}Extract the tarball{% endtrans %}< br / >
2012-01-03 01:27:35 +00:00
< code > tar xzf wrapper_3.5.13_src.tar.gz< / code > < / li >
2011-12-21 18:20:41 +00:00
< li > Set environment variables ANT_HOME and JAVA_HOME. In Debian, one can< br / >
2011-06-21 22:36:41 +00:00
< code > export ANT_HOME=/usr/share/ant< / code > < br / >
< code > export JAVA_HOME=/usr/lib/jvm/default-java< / code > < / li >
2011-12-21 18:20:41 +00:00
< li > Since there isn't a Makefile for Mipsel, we'll make a copy of an already existing makefile< br / >
2011-06-21 22:36:41 +00:00
< code > cp src/c/Makefile-linux-x86-32.make src/c/Makefile-linux-mipsel-32.make< / code > < / li >
2011-12-21 18:20:41 +00:00
< li > Now we can attempt to compile the wrapper< br / >
2011-06-21 22:36:41 +00:00
< code > ./build32.sh< / code > (use < code > ./build64.sh< / code > if you have a 64bit CPU and JVM)< / li >
2011-12-21 18:20:41 +00:00
< li > Copy the wrapper into its proper place:
< ul >
< li > < code > cp bin/wrapper $I2P/i2psvc< / code > < / li >
< li > < code > cp lib/wrapper.jar $I2P/lib< / code > < / li >
< li > < code > cp lib/libwrapper.so $I2P/lib< / code > < / li >
< / ul > < / li >
2013-02-01 20:12:08 +00:00
< li > {% trans %}Try to start I2P using < code > $I2P/i2prouter start< / code > {% endtrans %}< / li >
2011-12-21 18:20:41 +00:00
< li > < code > tail -f /tmp/wrapper.log< / code > and look for any problems.< / li >
2011-06-21 22:36:41 +00:00
< / ol >
2013-02-01 20:12:08 +00:00
{% trans %}If this did not work you'll need to use < code > runplain.sh< / code > to start I2P.{% endtrans %}
2011-06-21 22:36:41 +00:00
{% endblock %}