Skip to content

Change Java source and target version #142

Unanswered
73d ago
· 0 replies
Copy link

@porcupineyhairs porcupineyhairs

The codeql extractor for java sets the source and the target flags for the javac compiler to 8.

I wish to import java.net.http.HttpClient but it was not present in Java 8. It was included only in Java version 9. I am using java 11 on my host and I can compile my code with it properly.

So how do I change the source version for the codeql extractor to Java 11 here?

I tried adding -source 11 in the options file but in vain.

Replies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
Beta
You can’t perform that action at this time.