frieden84 / DemaRQ

DemaRQ: Demarcator for ReQuirements
MIT License
1 stars 1 forks source link

ClassLoader Error #2

Closed codewithmishra closed 1 year ago

codewithmishra commented 1 year ago

Exception in thread "main" java.lang.NoClassDefFoundError: Lcom/aspose/words/Document; at java.base/java.lang.Class.getDeclaredFields0(Native Method) at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3061) at java.base/java.lang.Class.getDeclaredFields(Class.java:2248) at org.apache.uima.fit.internal.ReflectionUtil.getFields(ReflectionUtil.java:60) at org.apache.uima.fit.factory.ConfigurationParameterFactory.createConfigurationData(ConfigurationParameterFactory.java:411) at org.apache.uima.fit.factory.ConfigurationParameterFactory.setParameters(ConfigurationParameterFactory.java:348) at org.apache.uima.fit.factory.CollectionReaderFactory.createReaderDescription(CollectionReaderFactory.java:795) at org.apache.uima.fit.factory.CollectionReaderFactory.createReaderDescription(CollectionReaderFactory.java:662) at org.apache.uima.fit.factory.CollectionReaderFactory.createReaderDescription(CollectionReaderFactory.java:599) at org.apache.uima.fit.factory.CollectionReaderFactory.createReaderDescription(CollectionReaderFactory.java:456) at lu.svv.saa.requirements.autofinding.pipelines.DemarcateRequirements.extractFeatures(DemarcateRequirements.java:72) at lu.svv.saa.requirements.autofinding.pipelines.DemarcateRequirements.main(DemarcateRequirements.java:64) Caused by: java.lang.ClassNotFoundException: com.aspose.words.Document at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 12 more

frieden84 commented 1 year ago

I repackaged the jar file. This is the best I can do. It works well on my end. I have Java 1.8.

codewithmishra commented 1 year ago

Caused by: java.io.IOException: Unable to load resource [classpath:/de/tudarmstadt/ukp/dkpro/core/opennlp/lib/tagger-en-maxent.properties]:

FileNotFoundException: No file found at [classpath:/de/tudarmstadt/ukp/dkpro/core/opennlp/lib/tagger-en-maxent.properties]

Please make sure that [de.tudarmstadt.ukp.dkpro.core.opennlp-model-tagger-en-maxent] version [20120616.1] is on the classpath.

If the version shown here is not available, try a recent version.

If you are using Maven, add the following dependency to your pom.xml file:

de.tudarmstadt.ukp.dkpro.core de.tudarmstadt.ukp.dkpro.core.opennlp-model-tagger-en-maxent 20120616.1

I guess it is still missing some of the dependencies in pom.xml