atomashpolskiy / bt

BitTorrent library and client with DHT, magnet links, encryption and more
https://atomashpolskiy.github.io/bt/
Apache License 2.0
2.4k stars 382 forks source link

Running CliClient.java Locally Reports an Error #214

Open xaoro opened 1 year ago

xaoro commented 1 year ago

Describe the bug When I clone the project locally and click to run CliClient.main(), IntelliJ reports an error that "java: package bt.test.protocol does not exist", which does not match the reality that it exists.

Expected behaviour run without error

Screenshots 3041667047403_ pic

Desktop Windows 10 IntelliJ IDEA 2021.2.3 (Community Edition)

yufeng-pan commented 1 year ago

Hi xaoro, I had the same problem and find out a way to run the project without an error.

The problem seems to come from the test file mentioned in the error message, commenting it out will allow the program to run normally. I have a branch that implements this change here: https://github.com/medoctopus/bt/tree/issue-214.

I hope that helps!