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 - just copied. it works)

On 25/11/2020 10:04, 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 <mailto:chris.l...@cerner.com> | Cerner Limited <http://www.cerner.com/>

On 25 Nov 2020, at 07:42, Thomas Kellerer <sham...@gmx.net <mailto:sham...@gmx.net>> wrote:

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 source level to 11.

Is there a way I can define my JDK 11 as the "default" JDK without running NetBeans on it (so keeping --jdk-home pointing to JDK 14)?

I am using NetBeans 12.1 on Windows 10

Regards
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org <mailto:users-unsubscr...@netbeans.apache.org> For additional commands, e-mail: users-h...@netbeans.apache.org <mailto:users-h...@netbeans.apache.org>

For further information about the NetBeans mailing lists, visit:
https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;data=04%7C01%7CChris.Luff%40cerner.com%7Cd59dd3d3411447394e6308d89115b1f8%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C637418869659252224%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=fhMinXYbACI3MyusNOrusXIfxNcB6i2vL%2BM8n7CdZSQ%3D&amp;reserved=0 <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;data=04%7C01%7CChris.Luff%40cerner.com%7Cd59dd3d3411447394e6308d89115b1f8%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C637418869659252224%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=fhMinXYbACI3MyusNOrusXIfxNcB6i2vL%2BM8n7CdZSQ%3D&amp;reserved=0>


CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.

--
Ing. Davide Grandi
email    : davide.gra...@email.it
mobile   : +39 339 7468 778
linkedin : http://linkedin.com/in/davidegrandi

Reply via email to