PiRSquared17 / jwpl

Automatically exported from code.google.com/p/jwpl
0 stars 1 forks source link

JWPLDataMachine errors #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download JWPL-0.7.2.zip package,and unzip it to D:\zyt\JWPL-0.7.2;
2. Open a "cmd.ext" and change current diretcory to D:\zyt\JWPL-0.7.2;
3. Input the command as follow:
     java -jar de.tudarmstadt.ukp.wikipedia.api-0.7.2.jar chinese 頁面分類 消歧义 d:/zyt/wik-zh

What is the expected output? What do you see instead?
  *Expected that it can generate JWPL wikipedia database.
  *Instead outputs as follows:
      Exception in thread "main" java.lang.NullPointerException
      at sun.launcher.LauncherHelper.getMainClassFromJar(Unknown Source)
      at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

What version of the product are you using? On what operating system?
*version:JWPL-0.7.2.zip
*OS: Test in both Win7 and Linux 2.6.35,but the results are the same.

Please provide any additional information below.

Original issue reported on code.google.com by zythit2...@gmail.com on 13 Dec 2011 at 9:08

GoogleCodeExporter commented 9 years ago
The jars from the Google Code page are not directly runnable. You have to add 
the provided dependencies to your classpath and define the main class.

Alternatively or you can use the runnable fatjars with built-in dependencies. 
They are available from Maven Central, as described on the Google Code page:

http://search.maven.org/#search|ga|1|tudarmstadt.ukp

Use the "jar-with-dependencies.jar" for the component you want to run.
For the DataMachine, this would be
http://search.maven.org/remotecontent?filepath=de/tudarmstadt/ukp/wikipedia/de.t
udarmstadt.ukp.wikipedia.datamachine/0.8.0/de.tudarmstadt.ukp.wikipedia.datamach
ine-0.8.0-jar-with-dependencies.jar

Original comment by oliver.ferschke on 13 Dec 2011 at 9:53

GoogleCodeExporter commented 9 years ago

Original comment by oliver.ferschke on 16 Feb 2012 at 1:24