{% extends "global/layout.html" %} {% block title %}{% trans %}Manually Installing the Java Wrapper{% endtrans %}{% endblock %} {% block content %}

{% trans %}Manually Installing the Java Wrapper{% endtrans %}

{% trans downloads=get_url('downloads_list') -%} The installation package for the I2P router comes 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. {%- endtrans %}

{% trans %}Using existing binaries{% endtrans %}

{% trans -%} In the steps below, $I2P means the location I2P was installed to. {%- endtrans %}

  1. tar xzf wrapper-*.tar.gz
  2. cp wrapper*/bin/wrapper $I2P/i2psvc
  3. cp wrapper*/lib/wrapper.jar $I2P/lib
  4. cp wrapper*/lib/libwrapper.so $I2P/lib
  5. {% trans %}Try to start I2P using $I2P/i2prouter start{% endtrans %}
  6. {% trans %}tail -f /tmp/wrapper.log and look for any problems.{% endtrans %}

{% trans -%} If this did not work you'll need to use runplain.sh to start I2P. {%- endtrans %}

{% trans %}Compiling from source{% endtrans %}

{% trans -%} These steps worked to compile the wrapper for use on a mipsel system running Debian. The steps will need to be altered for your system. {%- endtrans %}

  1. {% trans %}Download the source archive for the community version of the wrapper from wrapper download page.{% endtrans %}
  2. {% trans %}Extract the tarball{% endtrans %}
        tar xzf wrapper_3.5.13_src.tar.gz
  3. {% trans %}Set environment variables ANT_HOME and JAVA_HOME. For example, in Debian:{% endtrans %}
        export ANT_HOME=/usr/share/ant
        export JAVA_HOME=/usr/lib/jvm/default-java
  4. {% trans %}Since there isn't a Makefile for Mipsel, we'll make a copy of an already existing makefile:{% endtrans %}
        cp src/c/Makefile-linux-x86-32.make src/c/Makefile-linux-mipsel-32.make
  5. {% trans %}Now we can attempt to compile the wrapper:{% endtrans %}
        ./build32.sh ({% trans %}use ./build64.sh if you have a 64bit CPU and JVM{% endtrans %})
  6. {% trans %}Copy the wrapper into its proper place:{% endtrans %}
  7. {% trans %}Try to start I2P using $I2P/i2prouter start{% endtrans %}
  8. {% trans %}tail -f /tmp/wrapper.log and look for any problems.{% endtrans %}

{% trans %}If this did not work you'll need to use runplain.sh to start I2P.{% endtrans %}

{% endblock %}