It seems there is something wrong with the path when I try to run java -jar Crime_Ingestion_App-1.0.0.jar, it is looking for a file named areaList_ModenaToday.txt in configuration/configuration but there is no dir 'configuration' under 'configuration'. I created an additional directory 'configuration' to make this work, but it's probably good to fix this in the code.
Crime Ingestion App/target$ java -jar Crime_Ingestion_App-1.0.0.jar
ModenaToday
https://www.modenatoday.it/tag/furti/pag/
furto
Exception in thread "main" java.io.FileNotFoundException: configuration/configuration/areaList_ModenaToday.txt (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.(FileInputStream.java:157)
at java.base/java.io.FileInputStream.(FileInputStream.java:112)
at java.base/java.io.FileReader.(FileReader.java:60)
at Utils.load_list(Utils.java:15)
at NewsArticles.addNewsMT(NewsArticles.java:46)
at Main.main(Main.java:49)
Hi,
It seems there is something wrong with the path when I try to run java -jar Crime_Ingestion_App-1.0.0.jar, it is looking for a file named areaList_ModenaToday.txt in configuration/configuration but there is no dir 'configuration' under 'configuration'. I created an additional directory 'configuration' to make this work, but it's probably good to fix this in the code.
Crime Ingestion App/target$ java -jar Crime_Ingestion_App-1.0.0.jar ModenaToday https://www.modenatoday.it/tag/furti/pag/ furto Exception in thread "main" java.io.FileNotFoundException: configuration/configuration/areaList_ModenaToday.txt (No such file or directory) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.(FileInputStream.java:157)
at java.base/java.io.FileInputStream.(FileInputStream.java:112)
at java.base/java.io.FileReader.(FileReader.java:60)
at Utils.load_list(Utils.java:15)
at NewsArticles.addNewsMT(NewsArticles.java:46)
at Main.main(Main.java:49)