在Catalina上全新安装后尝试使用sbt运行Play Scala应用时出错:“加载JNotify监视服务时出错:null" [英] Error when trying to run a Play Scala app with sbt after fresh install on Catalina: "Error loading JNotify watch service: null"
问题描述
移至Catalina并重新安装所有内容后,无法运行我的Play Scala应用.
After moving to Catalina and re-installing everything, no way to run my Play Scala app.
先执行sbt
然后执行run
,我会收到此错误:
After doing sbt
then run
, I get this error:
[warn] Error loading JNotify watch service: null
此brewfile的所有文件都安装了brew(我没有粘贴完整的文件):
Everything was installed with brew from this brewfile (I didn't paste the complete file):
tap "AdoptOpenJDK/openjdk"
# Mac apps
cask "adoptopenjdk8"
brew "sbt@0.13"
brew "jenv"
Java版本:
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)
sbt: 0.13.18 播放: 2.6.20 OS X: 10.15.3(19D76)
sbt: 0.13.18 play: 2.6.20 os x: 10.15.3 (19D76)
推荐答案
我无法从技术上解释为什么JNotify无法在您的环境中正常工作,但是我可以肯定地说它与openjdk8的最新更新有关.
I can't technically explain why JNotify is not working well on your environment but I can definitely say it's linked to the latest update of openjdk8.
所以我成功地重现了adoptopenjdk8
版本242
的问题,我的解决方法是卸载此版本的openjdk并强制brew安装以前的版本(232):
So I succeeded to reproduce the issue with adoptopenjdk8
version 242
, my workaround is to uninstall this version of openjdk and force brew to install a previous version (232) :
brew cask install "https://raw.githubusercontent.com/AdoptOpenJDK/homebrew-openjdk/19d716f1c9ebc325ed23c5df580e0d2b027285a1/Casks/adoptopenjdk8.rb"
这篇关于在Catalina上全新安装后尝试使用sbt运行Play Scala应用时出错:“加载JNotify监视服务时出错:null"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!