1

I'm using intellij for Java development, and when I run the application, it shows an error message saying "Warning: The jjs tool is planned to be removed from a future JDK release jjs>", then it gets stuck at the line and none of my System.out.println print anything at all. I'm not sure what to do with it.

  • 3
    That's a deprecation warning, not an exception and will not keep your code from compiling or running. There's some other problem in your code that causes it to fail but since you didn't bother posting any code, there's no way to tell what's happening. – MarsAtomic Dec 08 '19 at 02:13

1 Answers1

2

In the short term, you don't need to do anything. This is just a warning. Your code will keep running until you upgrade to a Java release that removes the Nashorn Javascript interpreter.

The deprecation is in accordance with JEP 335. A Java release for Nashorn removal is not proposed in the JEP, and it hasn't been removed yet as of Java 13.

UPDATE - Nashorn was actually removed in Java 15+ (source Wikipedia).

In the long term, you will probably need to find a different Javascript interpreter for your application to use. You could suppress the warnings for now (for example: Disable warning in IntelliJ for one line), but if you do that there is a risk that you will forget that you did it, and then get a nasty shock when you upgrade to the (future) release.

If Intellij itself is using jjs, then the Intellij developers will need to address this.

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216