The import jdk.nashorn cannot be resolved

2.8k Views Asked by At

I am trying to import a project into my eclipse workspace. When I maven updated the project, this dependency is not getting downloaded. When I searched online, I found that jdk.nashorn is not supported from java 11 onwards. But I am using java 1.8.0_231, still its not working for me.

The code uses below class from the library.

import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator;

ObjectSizeCalculator.getObjectSize(modRespList)

Is there any way to make this code work?

0

There are 0 best solutions below