Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jdk.nashorn.internal.ir.annotations does not exist

Tags:

java

nashorn

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?

like image 907
asmgx Avatar asked Dec 01 '19 15:12

asmgx


1 Answers

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

like image 56
Richard Avatar answered Oct 24 '22 09:10

Richard