java “cannot find symbol” - when importing from a library

1.7k views Asked by At

So I have a java project (P1) (I am using Play Framework) in which I import a jar file (I generated from a different project I have (P2) ).

I had to do few changes in project (P2) including renaming few variables. Then I regenerated the Jar file which I then imported in (P1)

However whenever I try to run my project I get the follwoing error message

cannot find symbol Read from stdout: symbol: variable FIELD_NONSTEMMED_CONTENT

However the IDE is not showing any errors. In fact when I click on the variable FIELD_NONSTEMMED_CONTENT it redirects me to the imported class (from the JAR) which already have this variable.

So I am not sure what could be the cause of this issue.

I have read the detailed answer of the background on this error (see below), however I could not find related infromation.

https://stackoverflow.com/a/25706217/1831518

EDIT

To clarify

  • My IDE is intelliJ

  • My project (P1) is java web application built using playframework. I use Lightbend Activator build and run the project

  • The error message (shown above) appears when I try to build the project (P1)

  • Project (P2) - used to build the JAR file - is a normal java project

0

There are 0 answers