Two possible issues, not mutually exclusive and one of them is definitely an issue.
- Your classpath is wrong. Make sure that
jsc.jar
is in your classpath. - You need to invoke the constructor for
SmirnovTest
by using an instance creation expression which requires the use of the keywordnew
.
That is
SmirnovTest test = new SmirnovTest(array1, array2);
^^^
The second is definitely an issue with your code. Without using the keyword new
, javac
will interpret
SmirnovTest test = SmirnovTest(array1, array2);
as a method invocation and look for a method named SmirnovTest
in the class test
. You don't have it, so it will die with a cannot find symbol
error, whether or not you have successfully imported jsc.jar
.
Please fix the second if not also the first of these issues.