0
votes

I downloaded the JAR for the LingPipe language tool. (http://alias-i.com/lingpipe) I added some import statements as per their tutorial file here (http://alias-i.com/lingpipe/demos/tutorial/sentiment/src/PolarityBasic.java).

Now I go to compile with:

javac -cp <PATH_TO>/lingpipe-4.1.0.jar:. LingPipeTester.java

After doing this I get errors on the import statments, such as:

LingPipeTester.java:4: package com.aliasi.classify does not exist
import com.aliasi.classify.Classified;

What am I doing wrong here? Thanks for your help.

2
Add -verbose:class which will output all class loading. See if your class is being loaded (sounds like not).Steve Kuo
the -verbose:class option gives me this: javac: invalid flag: -verbose:class Usage: javac <options> <source files> use -help for a list of possible optionsNNNNNNNNNNDelicious
javac -cp <PATH>/lingpipe-4.1.0.jar:. -verbose:class LingPipeTester.javaNNNNNNNNNNDelicious
My bad, -verbose:class is a runtime switch (java). I see that you are trying to compile. In that case I'd check your path to the lingpipe jar.Steve Kuo

2 Answers

0
votes

you might have to give the absolute path.

<PATH_TO>/C://lingpipe...
0
votes

I solved it by compiling with

javac -cp lingpipe-4.1.0.jar LingPipeTester.java 

Before when I did this I was getting an error on runtime but it was because I wasn't including the current directory in the filepath when running it.