Re: No multi-catch suggestion?

2020-03-26 Thread Ernie Rael
On 3/26/2020 1:16 PM, Alonso Del Arte wrote: My question is just this: was it also this way in NetBeans 8.2, or am I remembering incorrectly? Just a guess. If you use the same variable name for the three cases does it work then? -ernie When I was writing up this toy example with NetBeans

No multi-catch suggestion?

2020-03-26 Thread Alonso Del Arte
My question is just this: was it also this way in NetBeans 8.2, or am I remembering incorrectly? When I was writing up this toy example with NetBeans 11.2: int dividend = 47; int divisor = 0; try { int result = dividend / divisor; System.out.println(

Re: Fat JAR for NetBeans

2020-03-26 Thread Geertjan Wielenga
Nice. Sounds like a tip you might want to share on Twitter, etc, pointing here. :-) Gj On Thu, Mar 26, 2020 at 7:38 PM gmail Vladimir Koković < vladimir.koko...@gmail.com> wrote: > If one needs to distribute only one jar without dist/lib jars, the > following ant script segment should be inserte

Fat JAR for NetBeans

2020-03-26 Thread gmail Vladimir Koković
If one needs to distribute only one jar without dist/lib jars, the following ant script segment should be inserted after the line file = "nbproject/build-impl.xml" /> in the project build.xml:                                        

Re: [java] Google style for Java

2020-03-26 Thread John Mc
I had a first draft of a NetBeans plugin I worked on previously[1]. I'd fixed some issues, but was able to get the release done correctly... Need to come back to that. But what you could do is close that repo, build the project and install the nbm file into NetBeans as a plugin. Any issues, plea

RE: [java] Google style for Java

2020-03-26 Thread Lister Jonathan
For maven projects use: (from command line) $ mvn com.coveo:fmt-maven-plugin:format Or, in Netbeans right click the (parent) project and Run Maven | Goals, enter ‘com.coveo:fmt-maven-plugin:format’ as the goal, click Remember as and enter e.g. ‘format’, then OK. From: Joel Strasser Sent: Thur

Re: Netbeans C/C++ failing on Rasbian Buster (based on Debian)

2020-03-26 Thread Emilian Bold
> It could be that the old card was faulty but until I did the C/C++ plugin > installation (which failed) Raspbian was booting and working fine. Correlation does not imply causation. Something is always running right before a hardware failure. Maybe the installation triggered many writes on the

Re: Netbeans C/C++ installation failed

2020-03-26 Thread Geertjan Wielenga
Right. Gj On Thu, 26 Mar 2020 at 08:37, Vladimir Kokovic wrote: > "...Since -Dnbjdk.home = /usr/lib/jvm/jdk-14 which has no pack200 and > unpack200 programs, I had to do symlink on jdk-13.0.1/bin/pack200 and > jdk-13.0.1/bin/unpack200 in jdk-14/bin ..." > > Vladimir Kokovic, DP senior (69) > Se

Re: Netbeans C/C++ installation failed

2020-03-26 Thread Vladimir Kokovic
"...Since -Dnbjdk.home = /usr/lib/jvm/jdk-14 which has no pack200 and unpack200 programs, I had to do symlink on jdk-13.0.1/bin/pack200 and jdk-13.0.1/bin/unpack200 in jdk-14/bin ..." Vladimir Kokovic, DP senior (69) Serbia, Belgrade, March 26, 2020

Re: Netbeans C/C++ installation failed

2020-03-26 Thread Geertjan Wielenga
You’re running NetBeans on JDK 14 I guess and so I’d suggest using an earlier JDK when installing C/C++ features since JDK 14 does not include Pack200, as explained on the 11.3 Download page, for unpacking. Gj On Thu, 26 Mar 2020 at 08:31, Geertjan Wielenga wrote: > It’s not the stablest enviro

Re: Netbeans C/C++ installation failed

2020-03-26 Thread Geertjan Wielenga
It’s not the stablest environment for an already unstable set of features, i.e., the C/C++ features. Gj On Thu, 26 Mar 2020 at 08:12, gmail Vladimir Koković < vladimir.koko...@gmail.com> wrote: > Just to mention that I've been working on clone and build Netbeans for 10 > years now: > > ant -v tr

Re: Netbeans C/C++ installation failed

2020-03-26 Thread Vladimir Kokovic
After your suggestions, I remembered that I had Netbeans since Tuesday that has CND, so I did copy nbbuild/netbeans/dlight to current Netbeans and now have C/C++ again. However, the problem of installing C/C++ still remains. Vladimir Kokovic, DP senior (69) Serbia, Belgrade, March 26, 2020 --

Re: Netbeans C/C++ installation failed

2020-03-26 Thread gmail Vladimir Koković
Just to mention that I've been working on clone and build Netbeans for 10 years now: ant -v tryme \ -Dnbjdk.home=/usr/lib/jvm/jdk-14 \ -Dtryme.args= "- modules --refresh --update-all --userdir /mnt/sdd1/home/src/netbeans-apache-git/testuserdir --fontsize 18" \ -Drun.args.ide= "- J-Xms256M -J-Xm

Re: Netbeans C/C++ installation failed

2020-03-26 Thread Geertjan Wielenga
Or use your 11.2 user directory in 11.3? Point to it in etc/netbeans.conf. Gj On Thu, 26 Mar 2020 at 07:59, Greg McPherson wrote: > > Greg McPherson > 17:57 (0 minutes ago) > to *users*, gmail > I've just started to do the Work At Home thing, and installed Netbeans > 11.3, while my work PC was