Excerpts from the exception:
- Code: Select all
12-10 08:31:05.044: WARN/javax.jmdns.JmDNS(19087): Initializing JmDNS with null address an name of 'computer'
12-10 08:31:05.083: WARN/System.err(19087): org.jmdns.api.DiscoveryException: io error instantiating jmdns
12-10 08:31:05.146: WARN/System.err(19087): Caused by: java.io.IOException: Error running exec(). Commands: [grep, nameserver, /etc/resolv.conf] Working Directory: null Environment: null
12-10 08:31:05.146: WARN/System.err(19087): Caused by: java.io.IOException: Permission denied
I'm definitely using working initialization code, and yes, I have given the application the INTERNET permission (other networking is working without issue as a result).
It appears that it's not able to access /etc/resolv.conf, which is odd -- I've seen a smattering of other complaints about this. Any ideas?
Incidentally, I did find a nice wrapper that makes invoking Java mDNS easier:
Naturally, jmdns is the way to go, as Apple's Bonjour library relies on JNI.