Debugging/building router questions...

I2P router issues
Post Reply
fubardude
Posts: 2
Joined: 23 Jun 2024 01:11

Debugging/building router questions...

Post by fubardude »

I'm looking at experimenting with the I2P source for various optimization purposes. Some questions however:

What is the exact jdk version used to build the installer bundle? "ant build" fails with "java.lang.NoClassDefFoundError: java/util/jar/Pack200" (Pack200 was deprecated back in 2018 and fully removed in 2020)

Is there a guide for how to invoke the full Router main from the debugger short of just copying the command line arguments from a running instance?

What IDE do most developers use for I2P development?

Thanks.
ReturningNovice
Posts: 1
Joined: 07 Oct 2018 20:33

Re: Debugging/building router questions...

Post by ReturningNovice »

Canon does not currently use pack200.

The I2P+ fork has it enabled, but dr|z3d has only used it a couple times for releases as far as I recall.

Java 8.0 is recommended for building. The result will run on newer java.

If you haven't looked here already, this gives some guidance on the build process.

http://git.idk.i2p/i2p-hackers/i2p.i2p/ ... type=heads
fubardude
Posts: 2
Joined: 23 Jun 2024 01:11

Re: Debugging/building router questions...

Post by fubardude »

Answer: At least the linux install package (

Code: Select all

ant installer-linux
) does work properly on Temerin v8 LTS on latest Ubuntu (the github action was a good guide and helped a lot).

On more modern JREs it won't run because of the dependency on Pack200. I can't do the full package because it fails during the Windows installer creation but, well, shrug-emoji...

Still don't have it working in the debugger yet, but it is getting there.
User avatar
zzz
Posts: 184
Joined: 31 Mar 2018 13:15

Re: Debugging/building router questions...

Post by zzz »

For distributed releases we use Java 8 as that is the minimum requirement.

For your own use only, any JDK and JRE, 8 or higher is fine, may as well use the latest to get the best performance.

I don't know what you mean by "the debugger" or what that is. Most devs do not use an IDE or a "debugger".

The easiest way to do development or experiments is to do a normal official install from official places. Then, in the source tree, make your mods, do 'ant updater', copy i2pupdate.zip to ~/.i2p/ and restart. Done and done. Why would you want to build a whole installer and reinstall every time?
Post Reply