JAVA_HOME Windows vs. Mac

Was wondering if anyone can answer a quick shiny server question. It's about communicating with Java on a mac. On windows the following code works:

Sys.setenv(JAVA_HOME='C:\Program Files\Java\jre1.8.0_211')

When adjusted for mac I can't seem to get it working or nail down the correct path:

Sys.setenv(JAVA_HOME='/Library/Java//Home')

Does anyone know how to point to java when running on mac (feel free to offer linux path as well)? Thanks everyone!

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.