And what kind of project are we talking about, can you give a lot more
details so we can help?

Yes, it is Ant-based. But what kind of project type -- a NetBeans Platform
application? A Java EE application? An HTML/JavaScript application? What,
exactly?

Gj

On Mon, Jul 1, 2019 at 10:58 AM Geertjan Wielenga <geert...@apache.org>
wrote:

> Look in the Project Properties of your project (right-click it in the
> Projects window and choose Properties).
>
> Gj
>
> On Mon, Jul 1, 2019 at 10:57 AM Peter Toye <netbe...@ptoye.com> wrote:
>
>> 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 <netbe...@ptoye.com>
>> www.ptoye.com
>>
>

Reply via email to