views:

23

answers:

0

We have an Eclipse RCP application in which we bundle Bonjour's dns_sd.jar. We would like to decouple our app by using the installed version of this jar file from the JRE/JDK dirs. That way we can ship the same app for many OS and Bonjour versions.

The plugins compile correctly with the jar, but trying to launch the product either from Eclipse or from the command line results in the apps not finding the jar:

java.lang.NoClassDefFoundError: com/apple/dnssd/BrowseListener

We tried to changed the classpath in few places: build path, vm options, env var, ... but the jar file is never resolved.

Anyone successful in building a plugin-based app that references outside plugins in the JRE/JDK dirs?

Is there another strategy we should follow to build a product that interacts with Bonjour, independently from the OS?