I am very new to Java and using IntelliJ I am running an open source file.
but the building giving this error
Error:(21, 43) java: package jdk.nashorn.internal.ir.annotations does not exist
I tried installing JDK 11 but still getting the same error.
What I have to do so the system recognize this library?
Not sure if this will help you so many months later, I think you used the spring web initializer to create a new project, at the test class you will find you are importing that class, delete the import statement and then delete the test case, then try to re build the project and it should run, as it was mentioned at the comments the class is not longer part of Java 11, probably later on you can try to use Junit for some of your test cases
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With