[ERROR] Access restriction: The type 'HttpServer' is not API (restriction on classpath entry 'C:\Program Files\Java\jre1.8.0_172\lib\rt.jar')
[ERROR] C:\Users\michael\git\HRE--History-Research-Environment\HRE--History-Research-Environment\org.historyresearchenvironment\bundles\org.historyresearchenvironment.server\src\org\historyresearchenvironment\server\listeners\ServerRequestListener.java:[35]
[ERROR] final HttpServer server = HttpServer.create(new InetSocketAddress(preferences.getInt("SERVERPORT", 8000)),
[ERROR] 0);
This class is not meant as API:
[ERROR] Access restriction: The type 'HttpServer' is not API (restriction on classpath entry 'C:\Program Files\Java\jre1.8.0_172\lib\rt.jar') [ERROR] C:\Users\michael\git\HRE--History-Research-Environment\HRE--History-Research-Environment\org.historyresearchenvironment\bundles\org.historyresearchenvironment.server\src\org\historyresearchenvironment\server\listeners\ServerRequestListener.java:[35] [ERROR] final HttpServer server = HttpServer.create(new InetSocketAddress(preferences.getInt("SERVERPORT", 8000)), [ERROR] 0);
It now prevents Maven from building HRE.