-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jar Bt #43
Comments
@rafael-vieira-coelho , you may download all jars from the central Maven repository |
Thank you!
2017-11-29 19:35 GMT-02:00 Andrei Tomashpolskiy <notifications@github.com>:
… @rafael-vieira-coelho <https://github.com/rafael-vieira-coelho> , you may
download all jars from the central Maven repository
<http://search.maven.org/#search%7Cga%7C1%7Ccom.github.atomashpolskiy>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgENcZl7qGSvQ_GmBym5jH4E9d0hmiSTks5s7c4PgaJpZM4QvnYu>
.
--
_______________________________________________________________
Rafael Vieira Coelho
Engenheiro de Computação pela Fundação Universidade Federal do Rio Grande
(FURG)
Mestre em Ciência da Computação pela Universidade Federal do Rio Grande do
Sul (UFRGS) - Redes de Computadores
https://twitter.com/rafael_coelho84
|
Hi, @atomashpolskiy. I downloaded the jar files and tried the example in the main page of Bt GitHub, but keeps getting an error with Module class from Google's Guice. I even trieded to add Guice jar to the project but didn't work. Could you help me? Att. |
You may find the dependencies for each jar in its' META-INF/MANIFEST.MF file. E.g. for bt-core-1.6-SNAPSHOT:
But it's usually a lot easier to just use Maven or Gradle to manage the dependencies. Check out the Maven's starting guide, for instance: https://maven.apache.org/guides/getting-started/ |
Now it worked the dependencies, but the example of creating a BtClient doesn't work. It's constructor only accepts storage. That example is deprecated?
|
Yeah, please use the code from the readme. I probably forgot to update the docs for this matter :) |
Disregard my previous comment, your piece of code should work. What does the compiler say? |
"method client in classe Bt cannot be applied to given type: required Storage, found no arguments" |
I used version 1.5 of Bt. |
This is weird, because the message is obviously wrong: https://github.com/atomashpolskiy/bt/blob/master/bt-core/src/main/java/bt/Bt.java. Would you mind elaborating more on your environment: JDK/javac version, IDE, etc.? |
Sure, i am using Netbeans with javac 9.0.1 (JDK Project is 8). I added bt-dht, bt-http-tracker-client, bt-core, bt-bencoding, bt-cli jars. |
JDK 1.8 |
The class that appears to import for BtClient is from bt.runtime.BtClient. Shouldn't be from bt.BtClient? |
Remove bt-cli from the classpath, if you've downloaded it from Central. It's not published in binary form since 1.1, and the outdated version must be causing conflicts. It's not needed for Bt operation anyways, it's just a standalone app. |
Thanks, @atomashpolskiy. That's it! |
Just another doubt: in Bt there is a way to create a torrent file from files in the computer? |
Of course, there's a method in the client builder: |
See this class: https://github.com/atomashpolskiy/bt/blob/master/bt-core/src/main/java/bt/TorrentClientBuilder.java . All methods are available in the object returned by |
Thanks a lot. You were very helpfull and the code is very good. Congrats.
Em 1 de dez de 2017 06:00, "Andrei Tomashpolskiy" <notifications@github.com>
escreveu:
See this class: https://github.com/atomashpolskiy/bt/blob/master/
bt-core/src/main/java/bt/TorrentClientBuilder.java . All methods are
available in the object returned by Bt.client() invocation.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AgENcTbLe--rhr_SM-kDhUU5B1OepxjGks5s77IOgaJpZM4QvnYu>
.
|
The method that receives an URL isn't for opening a torrent file? I was wondering if there is a method to create a torrent file from files in the computer. |
Another thing, i got a warning: [bt.service.executor-thread-1] WARN bt.torrent.TrackerAnnouncer - Tracker URL protocol is not supported: http://tracker.trackerfix.com:80/announce. Do you know how could i fix that? That means that the torrent file uses another protocol? |
Yes, it's for opening a
Make sure that |
I just get these messages from log: |
Very strange, can you set a breakpoint in |
Hi, where can i download the jar file to put in my project to use your library? Thanks.
The text was updated successfully, but these errors were encountered: