You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Peter Toye <ne...@ptoye.com> on 2019/07/01 08:57:12 UTC

...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:netbeans@ptoye.com
www.ptoye.com

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
Awesome -- and don't promise me a beer if you don't really mean it. :-)

And since you're in the UK, this is where you can deliver it:
https://www.eventbrite.co.uk/e/apache-netbeans-day-2019-uk-tickets-56803479737

:-)

Gj

On Fri, Jul 5, 2019 at 12:56 PM Peter Toye <ne...@ptoye.com> wrote:

> Dear Geertjan and Laszlo,
>
> Oh dear - of course it's my Partitions5 class that's messing things up.
> Update its properties and it all compiles and runs fine.
>
> I owe you a LOT of thanks for your patience - If you're ever in Salisbury,
> UK, I'll buy you a beer (or whatever you drink as long as it's not vintage
> champagne).
>
> I'm obviously getting too old to be using Java.....
>
> Best regards,
>
> Peter
> mailto:netbeans@ptoye.com
> www.ptoye.com
>
> -------------------------
> Thursday, July 4, 2019, 4:17:56 PM, you wrote:
>
>
> Well it might even be a javac issue in JDK 12.
> I just run into something like this a few days ago building a NetBeans
> module. Though I did not find the issue and had no time to deep dive into
> the details. Switching the Project to use OpenJDK 8 has solved this issue.
> So I'd recommend to install Java 8 inside of the ide as Tools > Java
> Platforms, then change to that platform in the project settings.
> In order to solve the original issue we would need real logs. Just execute
> the ant build in debug mode, then send the debug output. I'm sorry, but
> screenshot won't help in this case.
>
> On 7/4/19 3:11 AM, Peter Toye wrote:
>
> Re: ...and now I can't build 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:netbeans@ptoye.com <ne...@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:netbeans@ptoye.com <ne...@ptoye.com>
> www.ptoye.com
>

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
Dear Geertjan and Laszlo,

Oh dear - of course it's my Partitions5 class that's messing things up. Update its properties and it all compiles and runs fine.

I owe you a LOT of thanks for your patience - If you're ever in Salisbury, UK, I'll buy you a beer (or whatever you drink as long as it's not vintage champagne).

I'm obviously getting too old to be using Java.....

Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Thursday, July 4, 2019, 4:17:56 PM, you wrote:


Well it might even be a javac issue in JDK 12.
I just run into something like this a few days ago building a NetBeans module. Though I did not find the issue and had no time to deep dive into the details. Switching the Project to use OpenJDK 8 has solved this issue.
So I'd recommend to install Java 8 inside of the ide as Tools > Java Platforms, then change to that platform in the project settings.
In order to solve the original issue we would need real logs. Just execute the ant build in debug mode, then send the debug output. I'm sorry, but screenshot won't help in this case.

On 7/4/19 3:11 AM, Peter Toye wrote:

Re: ...and now I can't build
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:netbeans@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:netbeans@ptoye.com
www.ptoye.com 

Re: ...and now I can't build

Posted by Laszlo Kishalmi <la...@gmail.com>.
Well it might even be a javac issue in JDK 12.

I just run into something like this a few days ago building a NetBeans 
module. Though I did not find the issue and had no time to deep dive 
into the details. Switching the Project to use OpenJDK 8 has solved this 
issue.

So I'd recommend to install Java 8 inside of the ide as Tools > Java 
Platforms, then change to that platform in the project settings.

In order to solve the original issue we would need real logs. Just 
execute the ant build in debug mode, then send the debug output. I'm 
sorry, but screenshot won't help in this case.


On 7/4/19 3:11 AM, Peter Toye wrote:
> Re: ...and now I can't build 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:netbeans@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:netbeans@ptoye.com
> www.ptoye.com <http://www.ptoye.com>

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
Also, what you're showing in your screenshot looks pretty strange -- that
.txt extension is odd and will break things.

Gj

On Thu, Jul 4, 2019 at 1:48 PM Geertjan Wielenga <ge...@apache.org>
wrote:

> Maybe just create a brand new project and copy your 6 files and one form
> into that?
>
> Gj
>
> On Thu, Jul 4, 2019 at 1:47 PM Peter Toye <ne...@ptoye.com> wrote:
>
>> Dear Geertjan,
>>
>> No. There are 6 .java files and one form. See screenshot.
>>
>> Best regards,
>>
>> Peter
>> mailto:netbeans@ptoye.com
>> www.ptoye.com
>>
>> -------------------------
>> Thursday, July 4, 2019, 12:25:08 PM, you wrote:
>>
>>
>> Your application consists of two Java source files?
>>
>> Gj
>>
>> On Thu, Jul 4, 2019 at 12:52 PM Peter Toye <ne...@ptoye.com> wrote:
>>
>> Dear Geertjan,
>>
>> Here's the output from a clean build.
>>
>> ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild
>> clean jar
>> init:
>> deps-clean:
>> Updating property file:
>> D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
>> Partitions5.init:
>> Partitions5.deps-clean:
>> Updating property file:
>> D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
>> Deleting directory D:\Peter\Netbeans\Partitions5\build
>> Partitions5.clean:
>> Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
>> clean:
>> init:
>> deps-jar:
>> Created dir: D:\Peter\Netbeans\KillerSudoku11\build
>> Updating property file:
>> D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
>> Partitions5.init:
>> Partitions5.deps-jar:
>> Created dir: D:\Peter\Netbeans\Partitions5\build
>> Updating property file:
>> D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
>> Created dir: D:\Peter\Netbeans\Partitions5\build\classes
>> Created dir: D:\Peter\Netbeans\Partitions5\build\empty
>> Created dir:
>> D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
>> Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
>> 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)
>>
>>
>> Best regards,
>>
>> Peter
>> mailto:netbeans@ptoye.com
>> www.ptoye.com
>>
>> -------------------------
>> Thursday, July 4, 2019, 11:39:12 AM, you wrote:
>>
>>
>> Can you do this: copy and paste the build error message into the response
>> to this e-mail and then press Send?
>>
>> Gj
>>
>> On Thu, 4 Jul 2019 at 12:32, Peter Toye <ne...@ptoye.com> wrote:
>>
>> 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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com <ne...@ptoye.com>
>> www.ptoye.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
Maybe just create a brand new project and copy your 6 files and one form
into that?

Gj

On Thu, Jul 4, 2019 at 1:47 PM Peter Toye <ne...@ptoye.com> wrote:

> Dear Geertjan,
>
> No. There are 6 .java files and one form. See screenshot.
>
> Best regards,
>
> Peter
> mailto:netbeans@ptoye.com
> www.ptoye.com
>
> -------------------------
> Thursday, July 4, 2019, 12:25:08 PM, you wrote:
>
>
> Your application consists of two Java source files?
>
> Gj
>
> On Thu, Jul 4, 2019 at 12:52 PM Peter Toye <ne...@ptoye.com> wrote:
>
> Dear Geertjan,
>
> Here's the output from a clean build.
>
> ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild
> clean jar
> init:
> deps-clean:
> Updating property file:
> D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
> Partitions5.init:
> Partitions5.deps-clean:
> Updating property file:
> D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
> Deleting directory D:\Peter\Netbeans\Partitions5\build
> Partitions5.clean:
> Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
> clean:
> init:
> deps-jar:
> Created dir: D:\Peter\Netbeans\KillerSudoku11\build
> Updating property file:
> D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
> Partitions5.init:
> Partitions5.deps-jar:
> Created dir: D:\Peter\Netbeans\Partitions5\build
> Updating property file:
> D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
> Created dir: D:\Peter\Netbeans\Partitions5\build\classes
> Created dir: D:\Peter\Netbeans\Partitions5\build\empty
> Created dir:
> D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
> Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
> 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)
>
>
> Best regards,
>
> Peter
> mailto:netbeans@ptoye.com
> www.ptoye.com
>
> -------------------------
> Thursday, July 4, 2019, 11:39:12 AM, you wrote:
>
>
> Can you do this: copy and paste the build error message into the response
> to this e-mail and then press Send?
>
> Gj
>
> On Thu, 4 Jul 2019 at 12:32, Peter Toye <ne...@ptoye.com> wrote:
>
> 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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com <ne...@ptoye.com>
> www.ptoye.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
Dear Geertjan,

No. There are 6 .java files and one form. See screenshot.

Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Thursday, July 4, 2019, 12:25:08 PM, you wrote:


Your application consists of two Java source files?

Gj

On Thu, Jul 4, 2019 at 12:52 PM Peter Toye <ne...@ptoye.com> wrote:

Dear Geertjan,

Here's the output from a clean build.

ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Partitions5.init:
Partitions5.deps-clean:
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Deleting directory D:\Peter\Netbeans\Partitions5\build
Partitions5.clean:
Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
clean:
init:
deps-jar:
Created dir: D:\Peter\Netbeans\KillerSudoku11\build
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Partitions5.init:
Partitions5.deps-jar:
Created dir: D:\Peter\Netbeans\Partitions5\build
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Created dir: D:\Peter\Netbeans\Partitions5\build\classes
Created dir: D:\Peter\Netbeans\Partitions5\build\empty
Created dir: D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
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)


Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Thursday, July 4, 2019, 11:39:12 AM, you wrote:


Can you do this: copy and paste the build error message into the response to this e-mail and then press Send?

Gj

On Thu, 4 Jul 2019 at 12:32, Peter Toye <ne...@ptoye.com> wrote:

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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com
www.ptoye.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
Dear Geertjan,

That's right. The main app is KillerSudoku. There's a separate class (which is used by another project as well) called Partitions5. That hasn't changed for years. You're probably right. It'll take me a bit of time to sort that out as I have to go offline now for a few hours - maybe even tomorrow. I'll report back.

Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Thursday, July 4, 2019, 12:39:57 PM, you wrote:


Also, there appear to be two separate applications here, one named 'KillerSudoku11' and the other one named 'Partitions5'.

Not sure what this means, but something seems strange, aside from there being two Java source files in total.

Maybe you need to check javac.source and javac.target in the project.properties of both of your projects.

Gj

On Thu, Jul 4, 2019 at 1:25 PM Geertjan Wielenga <ge...@apache.org> wrote:

Your application consists of two Java source files?

Gj

On Thu, Jul 4, 2019 at 12:52 PM Peter Toye <ne...@ptoye.com> wrote:

Dear Geertjan,

Here's the output from a clean build.

ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Partitions5.init:
Partitions5.deps-clean:
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Deleting directory D:\Peter\Netbeans\Partitions5\build
Partitions5.clean:
Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
clean:
init:
deps-jar:
Created dir: D:\Peter\Netbeans\KillerSudoku11\build
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Partitions5.init:
Partitions5.deps-jar:
Created dir: D:\Peter\Netbeans\Partitions5\build
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Created dir: D:\Peter\Netbeans\Partitions5\build\classes
Created dir: D:\Peter\Netbeans\Partitions5\build\empty
Created dir: D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
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)


Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Thursday, July 4, 2019, 11:39:12 AM, you wrote:


Can you do this: copy and paste the build error message into the response to this e-mail and then press Send?

Gj

On Thu, 4 Jul 2019 at 12:32, Peter Toye <ne...@ptoye.com> wrote:

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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com
www.ptoye.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
Also, there appear to be two separate applications here, one named
'KillerSudoku11' and the other one named 'Partitions5'.

Not sure what this means, but something seems strange, aside from there
being two Java source files in total.

Maybe you need to check javac.source and javac.target in the
project.properties of both of your projects.

Gj

On Thu, Jul 4, 2019 at 1:25 PM Geertjan Wielenga <ge...@apache.org>
wrote:

> Your application consists of two Java source files?
>
> Gj
>
> On Thu, Jul 4, 2019 at 12:52 PM Peter Toye <ne...@ptoye.com> wrote:
>
>> Dear Geertjan,
>>
>> Here's the output from a clean build.
>>
>> ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild
>> clean jar
>> init:
>> deps-clean:
>> Updating property file:
>> D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
>> Partitions5.init:
>> Partitions5.deps-clean:
>> Updating property file:
>> D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
>> Deleting directory D:\Peter\Netbeans\Partitions5\build
>> Partitions5.clean:
>> Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
>> clean:
>> init:
>> deps-jar:
>> Created dir: D:\Peter\Netbeans\KillerSudoku11\build
>> Updating property file:
>> D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
>> Partitions5.init:
>> Partitions5.deps-jar:
>> Created dir: D:\Peter\Netbeans\Partitions5\build
>> Updating property file:
>> D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
>> Created dir: D:\Peter\Netbeans\Partitions5\build\classes
>> Created dir: D:\Peter\Netbeans\Partitions5\build\empty
>> Created dir:
>> D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
>> Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
>> 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)
>>
>>
>> Best regards,
>>
>> Peter
>> mailto:netbeans@ptoye.com
>> www.ptoye.com
>>
>> -------------------------
>> Thursday, July 4, 2019, 11:39:12 AM, you wrote:
>>
>>
>> Can you do this: copy and paste the build error message into the response
>> to this e-mail and then press Send?
>>
>> Gj
>>
>> On Thu, 4 Jul 2019 at 12:32, Peter Toye <ne...@ptoye.com> wrote:
>>
>> 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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com <ne...@ptoye.com>
>> www.ptoye.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
Your application consists of two Java source files?

Gj

On Thu, Jul 4, 2019 at 12:52 PM Peter Toye <ne...@ptoye.com> wrote:

> Dear Geertjan,
>
> Here's the output from a clean build.
>
> ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild
> clean jar
> init:
> deps-clean:
> Updating property file:
> D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
> Partitions5.init:
> Partitions5.deps-clean:
> Updating property file:
> D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
> Deleting directory D:\Peter\Netbeans\Partitions5\build
> Partitions5.clean:
> Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
> clean:
> init:
> deps-jar:
> Created dir: D:\Peter\Netbeans\KillerSudoku11\build
> Updating property file:
> D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
> Partitions5.init:
> Partitions5.deps-jar:
> Created dir: D:\Peter\Netbeans\Partitions5\build
> Updating property file:
> D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
> Created dir: D:\Peter\Netbeans\Partitions5\build\classes
> Created dir: D:\Peter\Netbeans\Partitions5\build\empty
> Created dir:
> D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
> Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
> 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)
>
>
> Best regards,
>
> Peter
> mailto:netbeans@ptoye.com
> www.ptoye.com
>
> -------------------------
> Thursday, July 4, 2019, 11:39:12 AM, you wrote:
>
>
> Can you do this: copy and paste the build error message into the response
> to this e-mail and then press Send?
>
> Gj
>
> On Thu, 4 Jul 2019 at 12:32, Peter Toye <ne...@ptoye.com> wrote:
>
> 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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com <ne...@ptoye.com>
> www.ptoye.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
Dear Geertjan,

Here's the output from a clean build.

ant -f D:\\Peter\\Netbeans\\KillerSudoku11 -Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Partitions5.init:
Partitions5.deps-clean:
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-clean.properties
Deleting directory D:\Peter\Netbeans\Partitions5\build
Partitions5.clean:
Deleting directory D:\Peter\Netbeans\KillerSudoku11\build
clean:
init:
deps-jar:
Created dir: D:\Peter\Netbeans\KillerSudoku11\build
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Partitions5.init:
Partitions5.deps-jar:
Created dir: D:\Peter\Netbeans\Partitions5\build
Updating property file: D:\Peter\Netbeans\KillerSudoku11\build\built-jar.properties
Created dir: D:\Peter\Netbeans\Partitions5\build\classes
Created dir: D:\Peter\Netbeans\Partitions5\build\empty
Created dir: D:\Peter\Netbeans\Partitions5\build\generated-sources\ap-source-output
Compiling 2 source files to D:\Peter\Netbeans\Partitions5\build\classes
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)


Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Thursday, July 4, 2019, 11:39:12 AM, you wrote:


Can you do this: copy and paste the build error message into the response to this e-mail and then press Send? 

Gj

On Thu, 4 Jul 2019 at 12:32, Peter Toye <ne...@ptoye.com> wrote:

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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com
www.ptoye.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
Can you do this: copy and paste the build error message into the response
to this e-mail and then press Send?

Gj

On Thu, 4 Jul 2019 at 12:32, Peter Toye <ne...@ptoye.com> wrote:

> 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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com <ne...@ptoye.com>
> www.ptoye.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
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:netbeans@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 <ne...@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:netbeans@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:netbeans@ptoye.com
www.ptoye.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
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 <ne...@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:netbeans@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:netbeans@ptoye.com <ne...@ptoye.com>
> www.ptoye.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
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:netbeans@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:netbeans@ptoye.com
www.ptoye.com 

Re: ...and now I can't build

Posted by Laszlo Kishalmi <la...@gmail.com>.
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:netbeans@ptoye.com
> www.ptoye.com <http://www.ptoye.com> 

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
Dear Geertjan and Laszlo,

Thanks both for the help. But the source/binary field was already set to JDK12 (see the screenshot in my email of 12:01 yesterday).

It's very odd. I tried again yesterday after getting Geertjan's email and it built OK without my changing anything. Then I shut down the PC and booted it up this morning, and it's not building again with the same error messages. I don't think that anything has changed.

I have a nasty feeling that I'm going to have to open a new project and copy all the files across.

Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Monday, July 1, 2019, 12:03:28 PM, you wrote:


I can very clearly see Source/Binary Format in your screenshot in the Sources tab.

Gj

On Mon, 1 Jul 2019 at 13:01, Peter Toye <ne...@ptoye.com> wrote:

Dear Geertjan,

I think we're at cross-purposes here. My Project Properties doesn't have tabs - see the attached screenshot. I tried a new project using Maven and that does have tabs. So it seems to be an Ant problem.


Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Monday, July 1, 2019, 11:41:46 AM, you wrote:


And in the Project Properties dialog, the first tab you see, named 'Sources', has 'Source/Binary Format' set to JDK 8 by default for me. When I change that to JDK 6, the two properties are changed for me to the following:

javac.source=1.6
javac.target=1.6

Thanks,

Gj

On Mon, Jul 1, 2019 at 12:40 PM Geertjan Wielenga <ge...@apache.org> wrote:

When I create a new Java SE project with Ant in NetBeans, I see these two in 'project.properties', you must have these too:

javac.source=1.8
javac.target=1.8

Look in the Files window, in the 'nbproject' folder, to find 'project.properties' file.

Gj

On Mon, Jul 1, 2019 at 11:57 AM Peter Toye <ne...@ptoye.com> wrote:

Dear Geertjan,

To answer both your posts:

I can't see any project option which corresponds to "source" or "target" with a value including "6". Which option are you referring to, please?

It's a straight Java app using Swing. Generated originally on NB version <=8 (can't remember exactly which version - it was a long time ago) by the usual method - select "Java application" and click "New | JFrame" - design & program from there.

HTH.

Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Monday, July 1, 2019, 10:01:03 AM, you wrote:


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 <ge...@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 <ne...@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:netbeans@ptoye.com
www.ptoye.com

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
I can very clearly see Source/Binary Format in your screenshot in the
Sources tab.

Gj

On Mon, 1 Jul 2019 at 13:01, Peter Toye <ne...@ptoye.com> wrote:

> Dear Geertjan,
>
> I think we're at cross-purposes here. My Project Properties doesn't have
> tabs - see the attached screenshot. I tried a new project using Maven and
> that does have tabs. So it seems to be an Ant problem.
>
> Best regards,
>
> Peter
> mailto:netbeans@ptoye.com
> www.ptoye.com
>
> -------------------------
> Monday, July 1, 2019, 11:41:46 AM, you wrote:
>
>
> And in the Project Properties dialog, the first tab you see, named
> 'Sources', has 'Source/Binary Format' set to JDK 8 by default for me. When
> I change that to JDK 6, the two properties are changed for me to the
> following:
>
> javac.source=1.6
> javac.target=1.6
>
> Thanks,
>
> Gj
>
> On Mon, Jul 1, 2019 at 12:40 PM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
> When I create a new Java SE project with Ant in NetBeans, I see these two
> in 'project.properties', you must have these too:
>
> javac.source=1.8
> javac.target=1.8
>
> Look in the Files window, in the 'nbproject' folder, to find
> 'project.properties' file.
>
> Gj
>
> On Mon, Jul 1, 2019 at 11:57 AM Peter Toye <ne...@ptoye.com> wrote:
>
> Dear Geertjan,
>
> To answer both your posts:
>
> I can't see any project option which corresponds to "source" or "target"
> with a value including "6". Which option are you referring to, please?
>
> It's a straight Java app using Swing. Generated originally on NB version
> <=8 (can't remember exactly which version - it was a long time ago) by the
> usual method - select "Java application" and click "New | JFrame" - design
> & program from there.
>
> HTH.
>
> Best regards,
>
> Peter
> mailto:netbeans@ptoye.com
> www.ptoye.com
>
> -------------------------
> Monday, July 1, 2019, 10:01:03 AM, you wrote:
>
>
> 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 <ge...@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 <ne...@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:netbeans@ptoye.com <ne...@ptoye.com>
> www.ptoye.com
>

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
Dear Geertjan,

I think we're at cross-purposes here. My Project Properties doesn't have tabs - see the attached screenshot. I tried a new project using Maven and that does have tabs. So it seems to be an Ant problem.

Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Monday, July 1, 2019, 11:41:46 AM, you wrote:


And in the Project Properties dialog, the first tab you see, named 'Sources', has 'Source/Binary Format' set to JDK 8 by default for me. When I change that to JDK 6, the two properties are changed for me to the following:

javac.source=1.6
javac.target=1.6

Thanks,

Gj

On Mon, Jul 1, 2019 at 12:40 PM Geertjan Wielenga <ge...@apache.org> wrote:

When I create a new Java SE project with Ant in NetBeans, I see these two in 'project.properties', you must have these too:

javac.source=1.8
javac.target=1.8

Look in the Files window, in the 'nbproject' folder, to find 'project.properties' file.

Gj

On Mon, Jul 1, 2019 at 11:57 AM Peter Toye <ne...@ptoye.com> wrote:

Dear Geertjan,

To answer both your posts:

I can't see any project option which corresponds to "source" or "target" with a value including "6". Which option are you referring to, please?

It's a straight Java app using Swing. Generated originally on NB version <=8 (can't remember exactly which version - it was a long time ago) by the usual method - select "Java application" and click "New | JFrame" - design & program from there.

HTH.

Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Monday, July 1, 2019, 10:01:03 AM, you wrote:


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 <ge...@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 <ne...@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:netbeans@ptoye.com
www.ptoye.com

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
And in the Project Properties dialog, the first tab you see, named
'Sources', has 'Source/Binary Format' set to JDK 8 by default for me. When
I change that to JDK 6, the two properties are changed for me to the
following:

javac.source=1.6
javac.target=1.6

Thanks,

Gj

On Mon, Jul 1, 2019 at 12:40 PM Geertjan Wielenga <ge...@apache.org>
wrote:

> When I create a new Java SE project with Ant in NetBeans, I see these two
> in 'project.properties', you must have these too:
>
> javac.source=1.8
> javac.target=1.8
>
> Look in the Files window, in the 'nbproject' folder, to find
> 'project.properties' file.
>
> Gj
>
> On Mon, Jul 1, 2019 at 11:57 AM Peter Toye <ne...@ptoye.com> wrote:
>
>> Dear Geertjan,
>>
>> To answer both your posts:
>>
>> I can't see any project option which corresponds to "source" or "target"
>> with a value including "6". Which option are you referring to, please?
>>
>> It's a straight Java app using Swing. Generated originally on NB version
>> <=8 (can't remember exactly which version - it was a long time ago) by the
>> usual method - select "Java application" and click "New | JFrame" - design
>> & program from there.
>>
>> HTH.
>>
>> Best regards,
>>
>> Peter
>> mailto:netbeans@ptoye.com
>> www.ptoye.com
>>
>> -------------------------
>> Monday, July 1, 2019, 10:01:03 AM, you wrote:
>>
>>
>> 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 <ge...@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 <ne...@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:netbeans@ptoye.com <ne...@ptoye.com>
>> www.ptoye.com
>>
>

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
When I create a new Java SE project with Ant in NetBeans, I see these two
in 'project.properties', you must have these too:

javac.source=1.8
javac.target=1.8

Look in the Files window, in the 'nbproject' folder, to find
'project.properties' file.

Gj

On Mon, Jul 1, 2019 at 11:57 AM Peter Toye <ne...@ptoye.com> wrote:

> Dear Geertjan,
>
> To answer both your posts:
>
> I can't see any project option which corresponds to "source" or "target"
> with a value including "6". Which option are you referring to, please?
>
> It's a straight Java app using Swing. Generated originally on NB version
> <=8 (can't remember exactly which version - it was a long time ago) by the
> usual method - select "Java application" and click "New | JFrame" - design
> & program from there.
>
> HTH.
>
> Best regards,
>
> Peter
> mailto:netbeans@ptoye.com
> www.ptoye.com
>
> -------------------------
> Monday, July 1, 2019, 10:01:03 AM, you wrote:
>
>
> 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 <ge...@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 <ne...@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:netbeans@ptoye.com <ne...@ptoye.com>
> www.ptoye.com
>

Re: ...and now I can't build

Posted by Peter Toye <ne...@ptoye.com>.
Dear Geertjan,

To answer both your posts:

I can't see any project option which corresponds to "source" or "target" with a value including "6". Which option are you referring to, please?

It's a straight Java app using Swing. Generated originally on NB version <=8 (can't remember exactly which version - it was a long time ago) by the usual method - select "Java application" and click "New | JFrame" - design & program from there. 

HTH.

Best regards,

Peter
mailto:netbeans@ptoye.com
www.ptoye.com

-------------------------
Monday, July 1, 2019, 10:01:03 AM, you wrote:


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 <ge...@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 <ne...@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:netbeans@ptoye.com
www.ptoye.com

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
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 <ge...@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 <ne...@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:netbeans@ptoye.com <ne...@ptoye.com>
>> www.ptoye.com
>>
>

Re: ...and now I can't build

Posted by Geertjan Wielenga <ge...@apache.org>.
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 <ne...@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:netbeans@ptoye.com <ne...@ptoye.com>
> www.ptoye.com
>