Back to LanguageTool Homepage - Privacy - Imprint

LT server


(Mility) #1



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


(Daniel Naber) #2

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;"?


(Mility) #3

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


(Daniel Naber) #4

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


(Mility) #5

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


(Daniel Naber) #6

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


(Mility) #7

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