You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
i2p-zero/README.md

46 lines
1.6 KiB

5 years ago
# Embedded I2P Java Router with SAM interface
5 years ago
This project will run under Linux, and build native launchers for Linux, MacOS and Windows. The launchers will include the I2P router, a SAM listener and a minimal JVM.
5 years ago
5 years ago
## Building the launchers
5 years ago
5 years ago
First, retrieve this project from git:
5 years ago
`git clone https://github.com/knaccc/embedded-i2p-java-router-with-sam.git`
5 years ago
Note that the current version of this script uses jdk-11.0.2. If this version of Java becomes no longer available for
5 years ago
download, then update the references to jdk-11.0.2 in this folder structure to the later version. To locate a recent
JDK download URL, see https://jdk.java.net/11/
5 years ago
5 years ago
Also note that JDKs for Linux, MacOS and Windows will be downloaded, which will total several hundred megabytes.
Run the `bin/build-all.sh` script, which will in turn call the following scripts:
5 years ago
1. `bin/import-packages.sh` to retrieve the I2P Java sources, OpenJDK and the Ant build tool
5 years ago
5 years ago
2. `bin/build-original-i2p.sh` to build the I2P project retrieved from the I2P repository
5 years ago
5 years ago
3. `build-launcher.sh` to convert the I2P JARs to modules, compile the Java source code in this project, and then use
5 years ago
the jlink tool to build a zero-dependency platform-specific launchers.
## Running the launchers
To run the Linux or MacOS router, type:
5 years ago
5 years ago
`dist/linux/router/bin/launch.sh`
5 years ago
5 years ago
For Windows, run:
5 years ago
5 years ago
`dist/windows/router/bin/launch.bat`
5 years ago
5 years ago
If it launches successfully, you'll see the message:
5 years ago
5 years ago
```
I2P router launched. SAM listening on port 7656.
Press Ctrl-C to gracefully shut down the router (or send the SIGINT signal to the process).
```
5 years ago
5 years ago
## Check that the I2P router is running and that it is listening for SAM connections
`fuser 7656/tcp`