“java.lang.SecurityException: Prohibited package name: java.sql” error happen only when executing outside of Eclipse

后端 未结 2 920
自闭症患者
自闭症患者 2021-01-20 17:41

I am writing a Topic Modeling program using Apache Tika to extract the text contents from other file type. Actually It run perfectly on Eclipse. But when I export to JAR fil

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-20 18:20

    Ran into this issue when creating a Runnable JAR via Eclipse (Mars).

    In the Jar generator I was setting the library handling option to

    Package required libraries into generated JAR

    but switching to

    Extract required libaries

    solved the issue

提交回复
热议问题