I'm trying to configure my workspace from windows in linux.
This code which is OK in windows:
jdk.nashorn.internal.parser.JSONParser p = new jdk.nashorn.internal.parser.JSONParser(s, null);
gets the following error under linux:
constructor JSONParser in class JSONParser cannot be applied to different types
And when I look at the source code under Linux and at the source code under Windows, I see very clear that the same class is different.
Does anyone know why this? If so, WORA principle isn't applied here, which seems pretty confusing to me.
With the hints given by different users, especially @FedericoklezCulloca, I managed to fix my problem. I would state the following points bellow: