I am trying to run torchserve for a BERT based token classfier on Mac M1 Pro. I am getting the following error when i start tochserve with the command.
torchserve --start --ncs --model-store model_store --models all
java not found, please make sure JAVA_HOME is set properly.
JAVA_HOME is set and java is installed. These are the outputs for the following commands
openjdk version “19.0.2” 2023-01-17
OpenJDK Runtime Environment Homebrew (build 19.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 19.0.2, mixed mode, sharing)
How can I solve this issue ?