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

36 lines
1.3 KiB

5 years ago
# Embedded I2P Java Router with SAM interface
This project will build a native launcher. The launcher will include the I2P router, a SAM listener and a minimal JVM.
## Building the launcher
5 years ago
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
download, then update the references to jdk-11.0.2 in this folder structure to the later version.
5 years ago
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
2. `bin/build-original-i2p.sh` to build the i2p project retrieved from the I2P repository
5 years ago
3. `build-launcher.sh` to convert the imported JARs to modules, compile the Java source code in this project, and then use
the jlink tool to build a zero-dependency platform-specific launcher.
5 years ago
## Running the launcher
5 years ago
To run the router, type:
`target/router/bin/launch.sh`
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 terminate.`
5 years ago
## Check that the I2P router is running and that it is listening for SAM connections
`fuser 7656/tcp`