How to add a native library in Tomcat?

前端 未结 3 1510
闹比i
闹比i 2020-11-28 13:05

I want to add gdal library in Tomcat. I read Native libraries not found in Tomcat but don\'t understand where in startup.bat I should add -Djava.library.

3条回答
  •  我在风中等你
    2020-11-28 13:43

    According to the comments on catalina.bat, I think the right place is CATALINA_OPTS.

    rem   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
    rem                   "run" or "debug" command is executed.
    rem                   Include here and not in JAVA_OPTS all options, that should
    rem                   only be used by Tomcat itself, not by the stop process,
    rem                   the version command etc.
    rem                   Examples are heap size, GC logging, JMX ports etc.
    

提交回复
热议问题