###前提・実現したいこと
eclipseでwordファイルを作成したい。
###発生している問題・エラーメッセージ
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.poi.util.DocumentHelper (file:/C:/poi-3.17/poi-ooxml-3.17.jar) to method com.sun.org.apache.xerces.internal.util.SecurityManager.setEntityExpansionLimit(int)
WARNING: Please consider reporting this to the maintainers of org.apache.poi.util.DocumentHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
エラーメッセージ
###該当のソースコード
import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import org.apache.poi.xwpf.usermodel.XWPFDocument; public class SamplePoi { public static void main(String[] args) throws IOException { OutputStream os = null; XWPFDocument wordFile = null; try { os = new FileOutputStream("TestWordFile.docx"); wordFile = new XWPFDocument(); wordFile.write(os); } catch (IOException e) { e.printStackTrace(); } finally { if (os != null) { os.close(); wordFile.close(); } } } }
###試したこと
課題に対してアプローチしたことを記載してください
###補足情報(言語/FW/ツール等のバージョンなど)
eclipse Version: Oxygen.2 Release (4.7.2)