Mike G
Mike G

Reputation: 4959

JAR not being included in classpath

In my working directory I have the following files : mallet-deps.jar, TopicTest.java and trove-3.0.3.jar but when i run javac -cp mallet-deps.jar:. TopicTest.java I get a bunch of import errors saying package doesn't not exist i.e

TopicTest.java:3: package cc.mallet.util does not exist import cc.mallet.util.*;

It seems like the Jar is not being included properly, im compiling on Ubuntu 12.04

Upvotes: 0

Views: 169

Answers (2)

Dhruv
Dhruv

Reputation: 245

I think you will need a manifest file that will point to the jar. use ClassPath:

Upvotes: 1

Peter Butkovic
Peter Butkovic

Reputation: 12139

what version of java do you use?
does the reffered jar file really contain the package reported as missing?

Upvotes: 0

Related Questions