I am using Java8 with Spring running on a Wildfly server.
I have the following package:
In LanguageChunkerServiceImpl
, I am trying to get a handle on en-parser-chunking.bin
, but I get a error:
java.io.FileNotFoundException: en-parser-chunking.bin (The system cannot find the file specified)
My code:
LanguageChunkerServiceImpl.java
new FileInputStream("en-parser-chunking.bin");
or
new FileInputStream("./src/main/java/com/jobs/spring/service/lang/en-parser-chunking.bin");
When I run this from the main
method, the following does work though:
new FileInputStream("./src/main/java/com/jobs/spring/service/lang/en-parser-chunking.bin");
Can anyone please advise what the path should be?
Thank you