RDT does not work with Java 13.0.1, which is the default version if people just run
brew cask install java
Instead, I used the following command to install Java 8.0, which makes the RDT worked for me.
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8