The current directory when executing on the server [^ 1] is
/Applications/Eclipse_2019-03.app/Contents/MacOS/
become.
Eclipse 2019-03 (4.11.0) Tomcat9 macOS 10.13.6 Java11
It is necessary to know where the current directory is when specifying a file with a relative path. When running a Java application in Eclipse, the current directory was the project directory. However, when I ran it on the server this time, the current directory was in a different location.
[^ 1]: Eclipse + Tomcat app https://searchman.info/java_eclipse/1100.html
Recommended Posts