On 24/01/2013 21:27, Daniel Naber wrote:
> On 24.01.2013, 13:15:38 Jaume Ortolà i Font wrote:
>
>> I can run the GUI with a file named now
>> "languagetool-standalone-2.1-SNAPSHOT.jar", but I had to unzip it
>> previously.  And I cannot find a command-line aplication like the
>> previous "LanguageTool.jar". Must I write one myself?
> You can use this for now (I just made an update, the class was still missing):
> java -cp languagetool-standalone-2.1-SNAPSHOT.jar 
> org.languagetool.commandline.Main
>
> We can either add script files or configure Maven to create
> another JAR for the command line version. Help is welcome, my list of
> "post Maven switch" TODOs is still quite long.
>
Sorry to disturb, people.
I've been using Eclipse previously.
Now I followed instructions for the maven repack.
Everything went ok, but I can't start the commandline:

mcon@vmrunner:/srv/Store/Language/languagetool/languagetool-standalone/target$ 
java -cp languagetool-standalone-2.1-SNAPSHOT.jar 
org.languagetool.commandline.Main
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/languagetool/Language
Caused by: java.lang.ClassNotFoundException: org.languagetool.Language
         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.languagetool.commandline.Main. 
Program will exit.
mcon@vmrunner:/srv/Store/Language/languagetool/languagetool-standalone/target$

I assume something is missing in the classpath.
Obviously I checked and org.languagetool.commandline.Main class *is* in 
the .jar, but tons of other things are missing.
Can someone, pretty please, post a complete and working classpath? (if 
relevant: I'm using a Ubuntu 12.4)

TiA
Mauro

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to