playframework/playframework — pull request #3056 by shkhln (2014-06-21 15:18:18+00:00)
Title: Catch yet another exception when loading JNotify.

Here is the output from sbt console on FreeBSD. It turns out on the second *run* jvm throws NoClassDefFoundError instead of ExceptionInInitializerError. Related to #2831.

> % sbt
> [play-2.3-highlights] $ ~run
>
> Cannot load the JNotify native library (null)
> Play will check file changes for each request, so expect degraded reloading performace.
>
> --- (Running the application from SBT, auto-reloading is enabled) ---
>
> [info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
>
> (Server started, use Ctrl+D to stop and go back to the console...)
>
> [success] Compiled in 194ms
>
> [success] Total time: 5 s, completed 21.06.2014 18:39:32
> 1. Waiting for source changes... (press enter to interrupt)
>
> [play-2.3-highlights] $ ~run
>
> java.lang.NoClassDefFoundError: Could not initialize class net.contentobjects.jnotify.JNotify