Bonjour,
comme personne ne répond à mon topic, je mets un peu plus de precision:
A ce jour, j'ai encore essayer de nombreuses fois de creer mon index, mais je n'y arrive toujours pas, je desespere.
Voici le code que j'utilise:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
public class Indexe extends TestCase {
public static void main (String argv [])
{
indexation();
}
static void indexation() {
String indexDir = "c:\\index" ;
String log4j = "c:\\log4j.properties";
File toIndex = new File ("c:\\test.txt");
String liusConfig = "c:\\liusConfig.";
LiusConfig lc = LiusConfigBuilder.getSingletonInstance().getLiusConfig(liusConfig);
LiusLogger.setLoggerConfigFile(log4j);
Indexer indexer = IndexerFactory.getIndexer(toIndex, lc);
indexer.index(indexDir);
System.out.println("Indexation reussie");
}
} |
Mais voila, j'obtiens un erreur pour:
LiusConfig lc = LiusConfigBuilder.getSingletonInstance().getLiusConfig(liusConfig);
Si je met cette ligne un peu plus loin ds le code, j'ai la meme erreur avec:
LiusLogger.setLoggerConfigFile(log4j);
voici l'erreur:
1 2 3
| Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/JDOMException
at Projet.Indexe.indexation(Indexe.java:37)
at Projet.Indexe.main(Indexe.java:23) |
Quelqu'un peut-il m'aider car je passe un temps bête a essayer de trouver la solution. MERCI D'AVANCE
Partager