i2psnark compile from source

Discussions about i2P enabled Bittorrent clients, experience reports and issues
marek
Posts: 7
Joined: Tue Sep 03, 2024 7:46 pm

i2psnark compile from source

Post by marek »

Hi all, I have some problem with i2psnark. Before bothering you with my problem I would like to compile the program from sources myself and debug into it, add print statements, and so on. But I don't know how to do it. So, I would like to bother you with building i2psnark instead. (-: My questions are: 1) Where does i2psnark source code live? 2) How do I compile it? (The standalone version.) 3) How do I run it after it compiles? I do have both Windows and Linux (Ubuntu) computer. I tried these commands:

Code: Select all

$ git clone https://github.com/i2p/i2p.i2p.git
$ cd i2p.i2p
$ ant build
$ cd apps/i2psnark/java/build
$ java -jar i2psnark.jar
Error: Could not find or load main class org.klomp.snark.CommandLine
Caused by: java.lang.NoClassDefFoundError: net/i2p/util/CommandLine
$ cd obj
$ java org.klomp.snark.standalone.RunStandalone
Error: Unable to initialize main class org.klomp.snark.standalone.RunStandalone
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/log/Logger
I guess the i2psnark compiled fine, but I'm unable to start it. Could you help me please?
User avatar
cumlord
Posts: 152
Joined: Thu Oct 05, 2023 5:01 pm
Location: Erect, NC
Contact:

Re: i2psnark compile from source

Post by cumlord »

i haven't personally tried this myself, but snark+ is at http://git.skank.i2p/i2pplus/I2P.Plus/s ... s/i2psnark and vanilla at https://github.com/i2p/i2p.i2p/blob/mas ... -snark.txt

the readme might be helpful, also worth stopping by #saltr/#i2p/#i2p-chat in irc2p
User avatar
lgillis
Posts: 323
Joined: Mon May 09, 2022 8:40 am

Re: i2psnark compile from source

Post by lgillis »

Back then, in 2016 or so: »ant i2psnark« builds i2psnark-standalone.zip. Unzip it somewhere and then start it.
marek
Posts: 7
Joined: Tue Sep 03, 2024 7:46 pm

Re: i2psnark compile from source

Post by marek »

cumlord wrote: Wed Sep 04, 2024 3:27 am also worth stopping by #saltr/#i2p/#i2p-chat in irc2p
How do I open irc chat in web browser?
marek
Posts: 7
Joined: Tue Sep 03, 2024 7:46 pm

Re: i2psnark compile from source

Post by marek »

lgillis wrote: Wed Sep 04, 2024 5:39 am ant i2psnark
Thank you, that worked.
anikey
Posts: 78
Joined: Thu Dec 07, 2023 9:22 pm

Re: i2psnark compile from source

Post by anikey »

marek wrote: Wed Sep 04, 2024 10:56 am How do I open irc chat in web browser?
I've not heard of any Web IRC sites in i2p. But you can get an irc client.
marek
Posts: 7
Joined: Tue Sep 03, 2024 7:46 pm

Re: i2psnark compile from source

Post by marek »

anikey wrote: Wed Sep 04, 2024 3:05 pm
marek wrote: Wed Sep 04, 2024 10:56 am How do I open irc chat in web browser?
I've not heard of any Web IRC sites in i2p. But you can get an irc client.
Any links?
marek
Posts: 7
Joined: Tue Sep 03, 2024 7:46 pm

Re: i2psnark compile from source

Post by marek »

OK, after few hours of twiddling whit Java I managed to fix my issue I was having with i2psnark. How do I submit new GitLab issue or new git pull request? I already applied for new GitLab user account registration yesterday, but so far no response. I fixed the issue in both https://git.idk.i2p/i2p-hackers/i2p.i2p and http://git.skank.i2p/i2pplus/I2P.Plus repositories. How do I configure git to communicate over I2P HTTP proxy?
User avatar
lgillis
Posts: 323
Joined: Mon May 09, 2022 8:40 am

Re: i2psnark compile from source

Post by lgillis »

marek wrote: Wed Sep 04, 2024 5:43 pm […]
I'm not sure if I understand your questions correctly …
In Gitlab, Pull request is officially called Merge request. It is better to ask this question in the I2P developer forum*, which was set up as a central point of contact for questions directly relating to the project. The Gitlab operators themselves can also answer detailed questions there.

* http://i2pforum.i2p/

Anecdote: Some time ago, you had to apply to the developers on IRC to be allowed to report potential bugs at all …
marek
Posts: 7
Joined: Tue Sep 03, 2024 7:46 pm

Re: i2psnark compile from source

Post by marek »

lgillis wrote: Thu Sep 05, 2024 7:25 am In GitLab, Pull request is officially called Merge request.
Pull request, push request, merge request, ... everybody calls them differently, they are basically the same thing.
lgillis wrote: Thu Sep 05, 2024 7:25 am ask this question in the I2P developer forum
Yeah, I would, if I could.

Code: Select all

The specified username is currently inactive. If you have problems activating your account, please contact a board administrator.
lgillis wrote: Thu Sep 05, 2024 7:25 am you had to apply to the developers on IRC to be allowed to report potential bugs at all
Any chance I could do it from web browser? Or if not, could you provide me with link to documentation how to install IRC chat program that communicates over I2P?
Post Reply