Re: How to make a different JDK the "default"

2020-11-26 Thread Davide Grandi
just 0,02 E. : - if you have multiple JDK - give a try to maven toolchain mechanism so every project can have the right set of java tools (e.g. compiling for an ancient jdk not supported anymore on recent javac). Cheers,     Davide (31 javac on \develop\java - none of then "truly" installed -

Re: How to make a different JDK the "default"

2020-11-26 Thread Humphrey Clerx
I suspect that would work with Maven, but our projects are using Ant qand there it's using the project.properties file and build.xml/build-impl.xml. For those it's easy to set the project to use the ""JDK_1.8" defined java platform, but it's not easy to do this in a global way, since the actual

Re: How to make a different JDK the "default"

2020-11-26 Thread Som Lima
If I understand you correctly. This is what I do then I know the jdk dependencies for the particular project. pom.xml I have copied and pasted relevant pom.xml tags for you to look at. create a pom.xml template for across the board uniformity. 1.8 1.8

Re: How to make a different JDK the "default"

2020-11-26 Thread Humphrey Clerx
I agree that projects should explicitly state the JDK platform to use. The problem is if I define a Java Platform through Tools->Java Platforms (e.g. JDK 1.8), this ends up being defined in build.properties in the NetBeans userdir (%APPDATA%\Roaming\NetBeans\12.2). That means all developers and

Re: How to make a different JDK the "default"

2020-11-26 Thread Som Lima
I think you guys are barking up the wrong tree with defaulting. For each project you should individualise instead of using default because each project is individual, so you are assured of same libraries and config environment .This will reduce the risk of incompatibility issues between

Re: How to make a different JDK the "default"

2020-11-25 Thread Humphrey Clerx
Would be great if this was possible for the Ant configuration as well. On Wed, Nov 25, 2020 at 10:04 AM Luff,Chris wrote: > > You can select a default in the Maven config. > > Associate Principal Engineer | UK Development - Care Insight and Delivery > Dev | chris.l...@cerner.com | Cerner

Re: How to make a different JDK the "default"

2020-11-25 Thread Thomas Kellerer
Ah, great, thanks. I didn't see that. Is there a solution for Gradle as well? Thomas Luff,Chris schrieb am 25.11.2020 um 10:04: > > You can select a default in the Maven config. > > Associate Principal Engineer | UK Development - Care Insight and Delivery Dev  > | chris.l...@cerner.com

Re: How to make a different JDK the "default"

2020-11-25 Thread Luff,Chris
[cid:B2C8B5F8-D1FA-4AFB-940C-EE9B08841455@Home] You can select a default in the Maven config. Associate Principal Engineer | UK Development - Care Insight and Delivery Dev | chris.l...@cerner.com | Cerner Limited On 25 Nov 2020, at 07:42,

How to make a different JDK the "default"

2020-11-24 Thread Thomas Kellerer
Hello, I am running NetBeans on OpenJDK 14, but all projects I have, are using Java 11 so I have an OpenJDK 11 defined through "Java Platforms". However, when I open a Maven or Gradle project, I always have to manually select JDK 11 in the project options despite the projects defining the