What steps will reproduce the problem?
java -Xmx1024m -classpath /home/minev/jate/dist/jate.jar:/home/minev/jate/libs/apache-log4j-1.2.15/log4j-1.2.15.jar:/home/minev/jate/libs/apache-opennlp-1.51/jwnl-1.3.3.jar:/home/minev/jate/libs/apache-opennlp-1.51/opennlp-maxent-3.0.1-incubating.jar:/home/minev/jate/libs/apache-opennlp-1.51/opennlp-tools-1.5.1-incubating.jar:/home/minev/jate/libs/dragon/dragontool.jar:/home/minev/jate/libs/hsqldb2.2.3/hsqldb.jar:/home/minev/jate/libs/hsqldb2.2.3/sqltool.jar:/home/minev/jate/libs/wit-commons/wit-commons.jar: uk.ac.shef.dcs.oak.jate.test.TestFrequency /home/minev/jate/nlp_resources/ test/example test/output
What is the expected output? What do you see instead?
Exception in thread "main" java.io.FileNotFoundException: D:/work/JATR_SDK/jate_googlecode/nlp_resources/stoplist.txt (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at java.io.FileReader.<init>(FileReader.java:55) at uk.ac.shef.dcs.oak.jate.util.control.StopList.loadStopList(StopList.java:44) at uk.ac.shef.dcs.oak.jate.util.control.StopList.<init>(StopList.java:30) at uk.ac.shef.dcs.oak.jate.test.TestFrequency.main(TestFrequency.java:70)
What version of the product are you using? On what operating system?
Product version: 1.1 OS: Mac OS 10.6 and Ubuntu Linux 11.04
Please provide any additional information below.
I've updated the config file jate_1.1.properties (once in root dir and in /src).
Comment #1
Posted on Feb 24, 2013 by Grumpy HippoIf you are using IntelliJ - check your Run configurations.
There are predefined program arguments in the project referencing paths that you have to change.
- jate-help.PNG 25.07KB
Comment #2
Posted on Mar 7, 2013 by Happy DogVery sorry for late reply, I didnt get a notification email of this.
Also thanks to OakNinja
Hope you have managed to solve this problem. If not, you only need to edit "jate.properties" in "/src". Change the property "jate.system.nlp" to "[your jate path]/nlp_resources". The missing file "stoplist.txt" should be there.
Comment #3
Posted on Apr 15, 2013 by Happy WombatComment deleted
Comment #4
Posted on Apr 16, 2013 by Happy WombatComment deleted
Comment #5
Posted on Apr 16, 2013 by Happy WombatCopying the two property files from the src folder to the main folder solved the issue.
Great work guys!
Comment #6
Posted on Jun 26, 2013 by Happy OxAfter changing the property also, I am getting the same error message. What else can I try.
Comment #7
Posted on Jul 25, 2013 by Happy DogAre you using the distributed jar in "dist"? If so , can you try changing the property file within the jar package? Open it with 7zip you can see the property file is bundled within. If you are using that jar in your library you need to change that property file.
Comment #8
Posted on Feb 16, 2014 by Happy RhinoDear Mihail,
I a beginner in running jate and I'm really baffled on how to run it. I open runtime and copy this to there
java -jar "Address\dist\jate.jar"
Nothing happened.
I wonder if you tell me step by stem am I doing right or not?
Thanks
Comment #9
Posted on Feb 18, 2014 by Happy WombatHi there,
- Add the *.jar files to your classpath, e.g. export CLASSPATH=$CLASSPATH"path_to_all_jar_files"
- Copy the two property files from /src to the main folder
- If neccessary update the jate_1.1.properties file
- Run with java -Xmx4g uk.ac.shef.dcs.oak.jate.test.TestTfIdf Input/ Output/
Mihail
Comment #10
Posted on Mar 10, 2015 by Helpful ElephantHello, I have the same problem, he doesn't see the root. who can help me??
Comment #11
Posted on Apr 17, 2015 by Happy MonkeyFWIW: I have fixed this by introducing a jar: prefix to the config settings which will either read the stream from within the jar or extract the necessary pieces to your platform's tmp directory. My work is based off of Alpha2 snapshot: https://github.com/etheriau/jatetoolkit
Status: Accepted
Labels:
Type-Defect
Priority-Medium