Dear Geertjan, Both javac.source and javac.target are set to 12. If I change the source/target to 8 they change accordingly. See the attached if you don't believe me!
Whichever I choose the build fails. Best regards, Peter mailto:netbe...@ptoye.com www.ptoye.com ------------------------- Thursday, July 4, 2019, 11:16:43 AM, you wrote: Can you open the Files window and look in the nbproject folder, where you’ll find the project.properties file? There you will find javac.source and javac.target, which you can set directly within that file. Gj On Thu, 4 Jul 2019 at 12:11, Peter Toye <netbe...@ptoye.com> wrote: Dear Laszlo, Yes - that was my point. I had opened the project (well, a copy of it so as not to disturb the original which works in NB version 8) in NB 11 and gone through the error resolution. Changing the source/target to JDK8 doesn't change anything - see attached screenshot. Best regards, Peter mailto:netbe...@ptoye.com www.ptoye.com ------------------------- Monday, July 1, 2019, 4:07:34 PM, you wrote: You might be compiling your old stuff with modern Java. Either go back to Java 8 or add javac.source=1.8 and javac.target=1.8 in your project properties. On 7/1/19 1:57 AM, Peter Toye wrote: ...and now I can't build I made a copy of a project in NB 8 and opened it in NB 11. Got some errors which were resolved OK. But it won't build - I get a warning and 2 errors: warning: [options] bootstrap class path not set in conjunction with -source 6 ??error: Source option 6 is no longer supported. Use 7 or later. ??error: Target option 6 is no longer supported. Use 7 or later.??BUILD FAILED (total time: 0 seconds) I can't see any way of changing this as there aren't any project options to change the source or target, even if I knew what they were referring to. Stackoverflow gives remedies for this, but only for Maven. This project was built using Ant in NB 8 which I assume is carried over to NB 11. The only likely reference that I can see is in build-impl.xml which is firmly marked "DO NOT EDIT"! But the comment implies that the properties aren't being overridden correctly. <target depends="-pre-init,-init-private" name="-init-user"> ?? <property file="${user.properties.file}"/> ?? <!-- The two properties below are usually overridden --> ?? <!-- by the active platform. Just a fallback. --> ?? <property name="default.javac.source" value="1.6"/> ?? <property name="default.javac.target" value="1.6"/> ?? </target>?? Any ideas where to go from here please? Regards, Peter mailto:netbe...@ptoye.com www.ptoye.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
project.properties
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists