Package doesn't exist error in intelliJ

Tika picture Tika · Nov 22, 2013 · Viewed 154.4k times · Source

I'm trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packages and wrote the methods, which gave me no error. The packages were available in the class.

But when I compile it gives me the error:

error: package net.sourceforge.barbecue does not exist

How can this be?

I'm coding in ubuntu, is there any other place to which I have to add the library?

Thanks. Tika

Answer

mattalxndr picture mattalxndr · Jun 2, 2016

I tried to "Maven > Reimport" but the only thing that actually fixed it was to close the project, delete the .idea directory, and reopen the project.