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