I am trying to use this class, but i'm having trouble importing it into my code. Anyone know it's not allowing me to import it? It is giving me a "Cannot resolve symbol 'edu'"
Asked
Active
Viewed 253 times
-2
-
Is the jar on your classpath? – shmosel May 20 '19 at 17:05
-
How are you trying to import it? I have the slight idea you might not yet use a build tool like maven or gradle, so I'd suggest you look into one of them. They handle importing external libraries into your classpath much better than just downloading a jar and importing it by hand. – Aarkon May 20 '19 at 17:09
1 Answers
1
You'll find the details here
You need to download the .jar
from https://search.maven.org/search?q=a:edu-mines-jtk, and add to your classpath,
- on a IDE like IntelliJ : Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project
- command line https://javarevisited.blogspot.com/2012/10/5-ways-to-add-multiple-jar-to-classpath-java.html
Or use maven, and just add the dependency : What does Maven do, in theory and in practice? When is it worth to use it?

azro
- 53,056
- 7
- 34
- 70