Hey Peter, yes you need to add the other JDKs to the Java Platforms from the Tools menu. Additionally, in the project properties ensure you have set the compile JDK, that is what Netbeans will use. The source binary should match especially if you want type inference to work. I have it running fine on my device right now. The in line warning is indicating you can change it to an explicit type.
@Dreamteam, does a feature exist so that be changed to a lightbulb instead of a warning or is it something I need to get onto the backlog? Thx Chris [cid:CFDFC8D1-5972-4840-9F96-91AE77AA29E4@cerner.com] On Jun 26, 2018, at 9:45 AM, Peter Hull <peterhul...@gmail.com<mailto:peterhul...@gmail.com>> wrote: I've downloaded and have been using RC1. Overall it's working very well for me. I have a quick question - is it possible to develop for a different JDK than the one that NetBeans itself is running on? NB is using JDK 1.8 but I have set up a "JDK 10" platform. I can select this and choose JDK10 as my source/binary format in a Java SE project, but I cannot use features like 'var' (red errors in the IDE). However I can clean and build using NB, then run the JAR from the command line and it's OK. Should I be able to use a different JDK than the NetBeans one? Thanks Peter --------------------------------------------------------------------- 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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C404048cbfb6546697e0308d5db414b73%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C636655995872957823&sdata=2YNgUUJ9nHjVV8N4Q9WlN57DLPnsS4%2BGll5HMGM5pf4%3D&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.