Re: [WEBSITE][BUILD INSTRUCTIONS] Difference between build instructions

2020-09-18 Thread Emilio G . C .
I did notice that they are in a way different build scenarios, but I worry 
mostly about building with JDKs other than 8 (LTS or not, even if we do support 
LTS only). Mostly I think it inefficient, having redundant info. I would 
propose, and even make a PR if you are ok with it, that the section on the 
Netbeans 12.1 download page link back to the other one with a small 
modification to include both use cases, both cloning from the repo and the 
official release zip.

How does that sound? Should I go ahead?

Thanks,

Emilio G.C.


From: Neil C Smith 
Sent: Friday, September 18, 2020 01:04
To: Emilio G.C. 
Cc: NetBeans Mailing List 
Subject: Re: [WEBSITE][BUILD INSTRUCTIONS] Difference between build instructions



On Thu, 17 Sep 2020, 21:20 Emilio G.C., 
mailto:rarei...@outlook.com>> wrote:
https://netbeans.apache.org/download/nb121/nb121.html

https://netbeans.apache.org/download/dev/index.html


Maybe I missed it, but I believe the main instructions should be consistent if 
they are repeated more than once on the website, or otherwise just appear on 
the dedicated section - the second link.

They're not instructions for quite the same thing, but you're right that the 
build instructions should be as on the /dev page. I noticed this when 
publishing the NB 12.1 page but forgot to update, sorry.

The difference in results between the two instructions is minor, though. But 
the zip is also probably more useful if you want to build for use rather than 
working on IDE development, where you'd use a git checkout anyway.

Best wishes,

Neil


Re: Java - System.out.print("Command: "); problem

2020-09-18 Thread Geertjan Wielenga
What if you change print to println?

Gj

On Fri, 18 Sep 2020 at 16:40, Laszlo Kishalmi 
wrote:

>
>
>
>
>
>
>
>
>
>
> What build system do you use for this example? If Gradle, the it
>
> would be supported in the 12.2 release only (the patch already
>
> available in the development builds).
>
>
>
>
> On 9/18/20 7:36 AM, Peter Ream wrote:
>
>
>
>
>
>
>
>
> I had a java program that worked in mood.fi’s plugin in netbeans. I tried
>
> it in Netbeans 12.0, but it would not work. Here is an example
>
> that does not work in Netbeans 12:
>
>
>
>
>
>
>
>
> import java.util.Scanner;
>
>
>
>
>
>
>
> public class Main {
>
>
>
>
>
>
>
> public static void main(String[] args) {
>
>
>
>
>
>
>
> Scanner scanner = new Scanner(System.in);
>
>
> while (true) {
>
>
> System.out.print("Command: ");
>
>
> String command = scanner.nextLine();
>
>
> System.out.println("Bye bye!");
>
>
> break;
>
>
> }
>
>
> }
>
>
> }
>
>
> }
>
>
>
>
>
>
>
> I have prior versions of Netbeans lying around. I found
>
> this works up through 11.1, but does not work in 11.3.
>
>
>
>
>
>
>
> Any ideas?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Thank you.
>
>
>
>
>
>
>
> Peter
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


Re: Java - System.out.print("Command: "); problem

2020-09-18 Thread Laszlo Kishalmi
What build system do you use for this example? If Gradle, the it would 
be supported in the 12.2 release only (the patch already available in 
the development builds).


On 9/18/20 7:36 AM, Peter Ream wrote:
I had a java program that worked in mood.fi ’s plugin 
in netbeans. I tried it in Netbeans 12.0, but it would not work. Here 
is an example that does not work in Netbeans 12:


import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        while (true) {
            System.out.print("Command: ");
            String command = scanner.nextLine();
                System.out.println("Bye bye!");
                break;
            }
        }
    }
}

I have prior versions of Netbeans lying around. I found this works up 
through 11.1, but does not work in 11.3.


Any ideas?

Thank you.

Peter


Java - System.out.print("Command: "); problem

2020-09-18 Thread Peter Ream
 I had a java program that worked in mood.fi’s plugin in netbeans. I tried
it in Netbeans 12.0, but it would not work. Here is an example that does
not work in Netbeans 12:

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);
while (true) {
System.out.print("Command: ");
String command = scanner.nextLine();
System.out.println("Bye bye!");
break;
}
}
}
}

I have prior versions of Netbeans lying around. I found this works up
through 11.1, but does not work in 11.3.

Any ideas?

Thank you.

Peter