Saturday 15 May 2010

java - How to include multiple class files and .Jar files in class path which exist in sub folders in linux? -


How to include multiple square files and jar files in the class path, I'm on Linux .. and integrating lucene packages Want to download my code, all the libraries and class files are in Lucene DIRC (they are sub-direct inside that folder)?

  Hello ALUCA Java: Error: package org.apache.lucene.analysis.standard import org.apache.lucene.analysis.standard.StandardAnalyzer does not exist; ^ HelloLucene.java10: Error: package org.apache.lucene.queryparser.classic import org.apache.lucene.queryparser.classic.ParseException does not exist; ^ HelloLucene.java11: Error: package org.apache.lucene.queryparser.classic import org.apache.lucene.queryparser.classic.QueryParser is not present; ^ HelloLucene.java3: Error: Can not find symbol, static static zero main (string [] args throws IOException, ParseException {^ symbol: class ParseException location: category HelloLucene HelloLucene.java.26: error: can not find the symbol Standard Analyst Analyzer = New Standard Analyzer (version. LUCENE_40); ^ Icons: Class StandardAnalyzer location: Class Hello Lucene Hello Aluignez.Java 26: Error: Icon Standard Analyzer Analyzer No = New Standard ANLaser (version. ALUCNW 40); ^ Symbol: Class StandardAnalyzer location: Class Hello Lucene Halociscen. Java 45: Error: Sync can not be found Q q = New query parser (version. ^ Symbol: Class Query Parser Location: Class Hello Lucin Note: Hello LCEN. Java uses or excludes an excluded API. Note: recompiled with exclute: exclusion for details. 7 errors    

Use the following command:

  EXPORT CLASSPATH = "$ CLASSPATH: xyz.jar **: ** path_to_abc.jar.jar"   

You have to add basically to the cell path, all the new entries you want To do this, use ':' in Linux and ';' In the window

No comments:

Post a Comment