Is it safe to distribute tools.jar along with a Java application bundle?

前端 未结 2 1015
无人共我
无人共我 2020-12-18 03:53

Although tools.jar is not a component in JRE, but it comes with all major implementations of JDK such as Oracle JDK and OpenJDK.

Not being standard comp

2条回答
  •  [愿得一人]
    2020-12-18 04:37

    Wouldn't it be easier just to require that a JDK be installed and $JAVA_HOME be set? It seems rather dangerous to package tools.jar with your app. It would then be the user's responsibility to get $JAVA_HOME on the $PATH however they choose to do it.

提交回复
热议问题