Possible interaction between `brew doctor` and Java
You deleted a file from your /usr/local, which is referenced by programs that are installed with brew. You'll most likely have to go through the reinstallation process to get that .dylib back if you can't find it and replace it on your own.