I am getting file not found exception when i read the file from server,but I can read a file fine when i execute the program from main,please tell me the suggestion for this issue. Thanks in advance.
static Ontology ontology = new SingleFileOntologyImpl("data/Thesaurus_V21.ontology");
System.err.println("Ontology file read!");
tokenizerFactory = TokenizerFactoryImpl.createDefaultTokenizerFactory(new UMLSGeneChemTokenizer());
normalizerFactory = NormalizerFactoryImpl.createDefaultNormalizerFactory(new LVGNormalizer("/home/rajendraprasad.yk/projects/FSTA/FSTA_NLP/tools/lvg2006/data/config/lvg.properties"));
System.err.println("LVG initialized");
disambiguator = new TypeDisambiguatorImpl(new RuleDisambiguator[] { new StrictDisambiguator(),new LooseDisambiguator() });
disambiguationDecisionMaker = new ThresholdDisambiguationDecisionMakerImpl();
String ontologyLanguageToLoad = null;
System.out.println(new Date());
peregrine = new PeregrineImpl(ontology, tokenizerFactory,normalizerFactory, disambiguator,disambiguationDecisionMaker, ontologyLanguageToLoad);
System.err.println("Peregrine Initialized ! "+ new Date());
Exception is :java.lang.RuntimeException: java.io.FileNotFoundException: data/Thesaurus_V21.ontology (No such file or directory)