Java: Difference between revisions
JavaFX/Webkit |
it is important that this path is written like this because this extension relies on other directories besides `bin/` to configure the jdt language server. without this path, the language server erroneously fails and displays confusing errors. |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 50: | Line 50: | ||
programs.vscode.userSettings = { | programs.vscode.userSettings = { | ||
"java.jdt.ls.java.home" = "${pkgs.jdk17}"; | "java.jdt.ls.java.home" = "${pkgs.jdk17}/lib/openjdk"; | ||
}; | }; | ||
</syntaxhighlight>Note that this will still result in the extension downloading its own JRE, it just will not be used. | </syntaxhighlight>Note that this will still result in the extension downloading its own JRE, it just will not be used. | ||
| Line 151: | Line 151: | ||
=== jdk11 === | === jdk11 === | ||
JDK11 does not provide the cacert overridable and therefore it is not possible to use the same technique to override the truststore. | JDK11 does not provide the cacert overridable and therefore it is not possible to use the same technique to override the truststore. | ||
As an alternative solution you can either set an environment variable, <code>JAVAX_NET_SSL_TRUSTSTORE</code>, or pass an argument to your program, <code>-Djavax.net.ssl.trustStore</code>, with the location of your cacert. See [https://discourse.nixos.org/t/custom-ssl-certificates-for-jdk/18297/9 discussion]. | |||
== Building and Packaging == | == Building and Packaging == | ||
| Line 179: | Line 181: | ||
==== Ivy ==== | ==== Ivy ==== | ||
[https://ant.apache.org/ivy/ Ivy] is a package manager for Ant, not to be confused with [https://github.com/NixOS/nixpkgs/blob/master/pkgs/ | [https://ant.apache.org/ivy/ Ivy] is a package manager for Ant, not to be confused with [https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/iv/ivy/package.nix ivy] - an APL-like calculator | ||
To fetch ivy sources manually, see for example [https://github.com/NixOS/nixpkgs/blob/master/pkgs/ | To fetch ivy sources manually, see for example [https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/je/jedit/package.nix pkgs/applications/editors/jedit] | ||
To fetch ivy sources in a fixed-output-derivation, see for example [https://github.com/milahu/nur-packages/blob/master/pkgs/yacy/yacy.nix yacy.nix] | To fetch ivy sources in a fixed-output-derivation, see for example [https://github.com/milahu/nur-packages/blob/master/pkgs/yacy/yacy.nix yacy.nix] | ||
| Line 203: | Line 205: | ||
{{Nixpkgs manual|sec-language-java}}<br /><br /><br /><br /><br />{{Wikipedia|Java_(programming_language)}} | {{Nixpkgs manual|sec-language-java}}<br /><br /><br /><br /><br />{{Wikipedia|Java_(programming_language)}} | ||
[[Category:Languages]] | [[Category:Languages]] | ||