Mauro Condarelli <mc5...@mclink.it> wrote: > On 28/01/2013 09:51, Jaume Ortolà i Font wrote: > > 2013/1/28 Mauro Condarelli <mc5...@mclink.it> >> >> 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 > > > Hi Mauro, > > I think you have to run the files not from the "target" folders but from > your local maven repository. > > By default, Maven local repository is: > Unix/Mac OS X – ~/.m2 > Windows – C:\Documents and Settings\{your-username}\.m2 > > Jaume > > Thanks Jaume, > Something is still missing. > My .m2/repository directory contains a lot of libs (.jars & .pom) deeply > nested, but nothing really about LanguageTool itself. > I can try to patch a classpath myself, but I strongly suspect maven should > be able to help. > Actual classpath will have to be a mix of the .m2/repository AND target. > Can someone point me in the right direction, please? > > TiA > Mauro
Yes, same problem on Linux. I have not had the time to work on LT since the move to Maven yet. But I just tried to build and run the command line and my classpath is also not set properly. I could search what to set it to (no time right now), but it's a bit annoying. Most users will face the same problem. I only use the command line personally. ============ $ cd languagetool $ mvn clean package ...snip... INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:43.141s [INFO] Finished at: Mon Jan 28 13:20:32 CET 2013 [INFO] Final Memory: 76M/1070M [INFO] ------------------------------------------------------------------------ $ echo "Test test test" | java -jar ~/.m2/repository/org/languagetool/languagetool-standalone/2.1-SNAPSHOT/languagetool-standalone-2.1-SNAPSHOT.jar -l fr Caused by: java.lang.ClassNotFoundException: org.languagetool.language.RuleFilenameException 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.gui.Main. Program will exit. ============ Regards Dominique ------------------------------------------------------------------------------ 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