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 <geert...@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 <netbe...@ptoye.com> wrote:
>
>> Dear Geertjan,
>>
>> No. There are 6 .java files and one form. See screenshot.
>>
>> Best regards,
>>
>> Peter
>> mailto:netbe...@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 <netbe...@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:netbe...@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 <netbe...@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: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 <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
>>
>> ---------------------------------------------------------------------
>> 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
>
>

Reply via email to