Re: Cannot use JDK 8 specific classes when compiling

2021-06-03 Thread Juan Algaba
Is your project using Ant, Maven or Gradle?

On Wed, Jun 2, 2021 at 6:28 AM Humphrey Clerx  wrote:
>
> I've updated from version 12.1 to 12.4 and am experiencing the following 
> problem:
>
> I'm running NetBeans under Windows 10, with JDK 11 as the default Java 
> Platform (set in netbeans.conf) I'm using AdoptOpenJDK 11 (11.0.11+9).
>
> Since my RCP project still requires JDK 8 as a runtime, I've added a Java 
> Platform in NetBeans 12.4, defined as JDK 1.8 and have set it to point to the 
> installed AdoptOpenJDK version for Java 8 (8u292-b10).
>
> All of these settings were identical to the settings when using NetBeans 12.1.
>
> When I compile/build my RCP project all works fine with NetBeans 12.1, but in 
> NetBeans 12.4 I get the following error. This happens both with nb-javac 
> installed and with nb-javac uninstalled.
>
> During build:
> Ignoring source, target and bootclasspath as release has been set.
>
> Failure in build:
> error: package sun.awt does not exist.
>
> This happens because one of our classes uses 
> sun.awt.AppContext.getAppContext() to install our own RepaintManager (to 
> detect EDT violations).
>
> I guess the reason is that in NetBeans 12.1 the actual java compiler used to 
> build the project is the one set as the Java Platform for the project 
> (8u292), but in NetBeans 12.4 the JDK 11 compiler is used with some kind of 
> "--release" flag to indicate that it should compile for Java 8. However, this 
> doesn't work when the application uses classes that are (no longer) present 
> in Java 11 (or above).
>
> How can I change (if any) settings in NetBeans 12.4 to allow the build to 
> succeed, as is possible with NetBeans 12.1?
>
> Greets,
> Humphrey.
>
> --
> In the mountains of truth, you never climb in vain - Nietzsche
> #-
>  \_O
> ,__/>
>   <"
>'



-- 

-Juan Algaba

-
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



Re: Failing at updating Netbeans to 12.4 on a Mac

2021-06-03 Thread Will Hartung
The new version will import a lot of the settings from the old version, so
it's sort of a self updating thing.

On Thu, Jun 3, 2021 at 7:30 PM Geertjan Wielenga
 wrote:

> You always need to install new versions from scratch. Download the
> installer for 12.4 and run it from scratch.
>
> Gj
>
> On Fri, 4 Jun 2021 at 03:36, Andreas Reichel <
> andr...@manticore-projects.com> wrote:
>
>> But this does not work on Linux with 12.3 either:
>>
>>
>> Best regards
>> Andreas
>>
>> On Thu, 2021-06-03 at 21:34 -0400, Carl Mosca wrote:
>>
>> Yes the new version should be installed.
>>
>> On Thu, Jun 3, 2021 at 9:32 PM Chris Olsen  wrote:
>>
>> Hello, Everyone --
>>
>>   I currently am running Netbeans 11.3 on a relatively old Mac.  I tried
>> to update ( = "Check for updates) but it failed.
>>
>>   a)  Should it, in a just world, have worked?
>>
>>   b)  Should I just not care, uninstall 11.3 and install 12.4?
>>
>>   I am NOT a Mac person and  messing this up would engender LOTS of
>> head-scratching on my part...
>>
>>   Thanks in advance!
>>
>>   -- Chris
>>
>> -
>> 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
>>
>>
>>


Re: Failing at updating Netbeans to 12.4 on a Mac

2021-06-03 Thread Andreas Reichel
But this does not work on Linux with 12.3 either:


Best regards
Andreas

On Thu, 2021-06-03 at 21:34 -0400, Carl Mosca wrote:
> Yes the new version should be installed.
> 
> On Thu, Jun 3, 2021 at 9:32 PM Chris Olsen  wrote:
> > Hello, Everyone --
> > 
> >   I currently am running Netbeans 11.3 on a relatively old Mac.  I
> > tried to update ( = "Check for updates) but it failed.
> > 
> >   a)  Should it, in a just world, have worked?
> > 
> >   b)  Should I just not care, uninstall 11.3 and install 12.4?
> > 
> >   I am NOT a Mac person and  messing this up would engender LOTS of
> > head-scratching on my part...
> > 
> >   Thanks in advance!
> > 
> >   -- Chris
> > 
> > ---
> > --
> > 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
> > 



Re: Failing at updating Netbeans to 12.4 on a Mac

2021-06-03 Thread Carl Mosca
Yes the new version should be installed.

On Thu, Jun 3, 2021 at 9:32 PM Chris Olsen  wrote:

> Hello, Everyone --
>
>   I currently am running Netbeans 11.3 on a relatively old Mac.  I tried
> to update ( = "Check for updates) but it failed.
>
>   a)  Should it, in a just world, have worked?
>
>   b)  Should I just not care, uninstall 11.3 and install 12.4?
>
>   I am NOT a Mac person and  messing this up would engender LOTS of
> head-scratching on my part...
>
>   Thanks in advance!
>
>   -- Chris
>
> -
> 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
>
> --
Regards,
Carl


Failing at updating Netbeans to 12.4 on a Mac

2021-06-03 Thread Chris Olsen
Hello, Everyone --

  I currently am running Netbeans 11.3 on a relatively old Mac.  I tried to 
update ( = "Check for updates) but it failed.

  a)  Should it, in a just world, have worked?

  b)  Should I just not care, uninstall 11.3 and install 12.4?

  I am NOT a Mac person and  messing this up would engender LOTS of 
head-scratching on my part...

  Thanks in advance!

  -- Chris

-
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



Re: [ANNOUNCE] Apache NetBeans 12.4 released

2021-06-03 Thread Pieter van den Hombergh
Hello Netbeans team, Geertjan,

I want to compliment and thank you for the new release. As a test
aficionado, I am very pleased with the new feature of the tiny test button
in the left-hand gutter to run individual test methods.
Thank you indeed.


On Sat, May 29, 2021 at 11:32 AM Geertjan Wielenga 
wrote:

> Hi all,
>
> The Apache NetBeans team is pleased to announce that Apache NetBeans 12.4
> was released on May 19th 2021*.  Apache NetBeans is a full IDE for Java SE,
> Java EE, PHP, JavaScript, HTML5 and more, including some support for Groovy
> and C/C++.
>
> Apache NetBeans 12.4 is a quarterly feature update. The LTS release of the
> current cycle is Apache NetBeans 12.0. The 12.4 release has not been as
> heavily tested as the LTS release. Our schedule is publicly available here:
>
> https://cwiki.apache.org/confluence/display/NETBEANS/Release+Schedule
>
> New & noteworthy features of the 12.4 release:
> https://netbeans.apache.org/download/nb124/index.html
>
> Downloads:
> https://netbeans.apache.org/download/nb124/nb124.html
>
> Feel free to share the good news!
>
> * We're a little late in announcing this because we were creating
> convenience binaries, e.g., installers, since announcing the result of the
> vote thread.
>
> Thanks everyone, and best wishes,
>
> Geertjan and Neil
> Release Manager for Apache NetBeans 12.4
> on behalf of Apache NetBeans PMC
>


-- 
Pieter Van den Hombergh.
No software documentation is complete with out it's source code.


Re: (SOLVED) Problem with gradle 7 (try with netbeans 12.2 and 12.4)

2021-06-03 Thread mez...@yahoo.com.INVALID

Many thanks Scott, problem solved with your suggestion.
Valerio Mezzalira.
Il 01/06/2021 16:00, Scott Palmer ha scritto:

Replace the (deprecated) ‘compile’ with ‘implementation’


On Jun 1, 2021, at 4:40 AM, mez...@yahoo.com.invalid 
 > wrote:


Hi to All,
I went from Gradle 6.5 to 6.8 to 6.9  with no problems with a very 
small project.


With Gradle 7 (all 7s) Netbeans 12.2 and 12.4, openjdk 15.0.2, the 
same project gives me this problem:




With Gradle 7, the syntax to add a local .jar file is the same ?

The project foresees a local .jar. With Gradle 6.x it was possible to 
set in the classpath in the following way:

Gradle params:
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'

repositories {
    mavenCentral ()
}

dependencies {
 testImplementation 'junit: junit: 4.13'*
compile files('../tco_lib/dist/tco_lib.jar')*
}
End Gradle params.

Thanks in advance if anyone can give me a tip,
Valerio