javaeclipsemacosplayframeworkjnotify

Play Framework 2.1 Java/Eclipse: Auto-Reload not working


The Problem/s:

Background:

To be able to make changes without having to restart the server each time I tried (without success):

Questions:

Further information:

Both of them point to JNotify as the cause for auto-reloading not to work. One of the answers (not enough rep to write a comment) mentions how one could "hack Play framework's sbt plugin to make the PlayReloader trait behave as if JNotify wasn't available." How could one achieve this?


Solution

  • The following got Play's auto-reload to working with Eclipse:

    1. In Eclipse Preferences go to GeneralWorkspace. Uncheck Build automatically.
    2. Restart OS X.

    For whatever reason, I had to restart OS X to get akim's suggestion to take hold.