Skip to content
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

Ubuntu 16.04 Exception #14

Open
tiloreboucas opened this issue Apr 2, 2017 · 1 comment
Open

Ubuntu 16.04 Exception #14

tiloreboucas opened this issue Apr 2, 2017 · 1 comment

Comments

@tiloreboucas
Copy link

$ java -jar airplay.jar
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jmdns/JmDNS
at com.jameslow.AirPlay.search(Unknown Source)
at com.jameslow.AirPlay.search(Unknown Source)
at com.jameslow.AirPlay.searchDialog(Unknown Source)
at com.jameslow.AirPlay.searchDialog(Unknown Source)
at com.jameslow.AirPlay.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.jmdns.JmDNS
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 5 more

@johnny-k
Copy link

Hi,
you are missing some external libraries. As stated on the project page you require JMDNS, also you need SLF4J. From SLF4J you need the api and an implementation e.g simple or nop. Then open your command line and write
java -cp slf4j-api.jar:slf4j-nop.jar:jmdns.jar:airplay.jar com.jameslow.AirPlay
This solves your issue, but it crashes later after selecting an appleTV and a screen resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants