1

I want to make a Java program that allow me this discover my nearby computers who is running the same problem. Which is similar like the iTunes, can discover nearby computer who enable sharing in the iTunes. How can I implement it using open source library? Also, cross platform is very important. Any ideas on that? Thank you.

Tattat
  • 15,548
  • 33
  • 87
  • 138
  • possible duplicate of [Are there any other Java libraries for bonjour/zeroconf apart from JMDNS?](http://stackoverflow.com/questions/1233204/are-there-any-other-java-libraries-for-bonjour-zeroconf-apart-from-jmdns) – Riduidel Nov 02 '10 at 16:10

5 Answers5

3

Well, Bonjour itself is open source, so you might want to start there...

http://developer.apple.com/opensource/

David Gelhar
  • 27,873
  • 3
  • 67
  • 84
3

jmdns is a full Bonjour/Zeroconf implementation written in Java compatible with Apple. There is no dependency on native libraries, it is 100% Java.

http://jmdns.sourceforge.net/

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
1

I think you definitely should take a look at UPnP. Considering the cross-platformness of such a solution, and its implementation using Java, you can consider

Finally, considering existing implementation of Bonjour using Java, this reply to a stackoverflow question sums it up.

Community
  • 1
  • 1
Riduidel
  • 22,052
  • 14
  • 85
  • 185
0

You can use Avahi - an open-source implementation for zeroconf, which is the protocol used by iTunes. There's a nice list of options for Java at:

http://elliotth.blogspot.com/2009/03/registering-service-with-dns-sd-from.html

kichik
  • 33,220
  • 7
  • 94
  • 114
0

I don't know how far it ever got, but Java had the JXTA project, it might do what you want.

mezmo
  • 2,441
  • 19
  • 22