Back to LanguageTool Homepage - Privacy - Imprint

LT server


In class HTTPSServer, The method setSSLParameters(SSLParameters) is undefined for the type HttpsParameters.

I cannot reproduce this. Which version of Java are you using? Does the file HTTPSServer.java have this import: “import com.sun.net.httpserver.HttpsParameters;”?

yes, I’m using Java8, and referenced jar is http-20070405.jar.

HttpsParameters is part of Java, it should not be in a referenced JAR.

but Access restriction: The type ‘HttpsParameters’ is not API (restriction on required library ‘C:\Program Files\Java\jre1.8.0_65\lib\rt.jar’)

It works for me and the other developers, so maybe your IDE is configured too strict. Also, it’s documented at https://docs.oracle.com/javase/8/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html#package.description

Thanks, You are right, I changed my IDE configuration and turn right.