Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-22 Thread David Holmes
On Mon, 21 Oct 2024 07:21:14 GMT, Jan Lahoda wrote: > usage of what That seems pretty self-evident to me. "launcher" is our terminology for the java executable, but for users it is just a program that runs other stuff. - PR Review Comment: https://git.openjdk.org/jdk/pull/21411#d

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v4]

2024-10-21 Thread Kevin Bourrillion
On Mon, 21 Oct 2024 09:41:50 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v4]

2024-10-21 Thread Magnus Ihse Bursie
On Mon, 21 Oct 2024 09:41:50 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v4]

2024-10-21 Thread Magnus Ihse Bursie
On Mon, 21 Oct 2024 09:41:50 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v4]

2024-10-21 Thread Jan Lahoda
On Mon, 21 Oct 2024 11:59:21 GMT, Magnus Ihse Bursie wrote: > So what does the current output look like now after all adjustments? Uh, right. Now updated in the description. - PR Comment: https://git.openjdk.org/jdk/pull/21411#issuecomment-2426476144

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-21 Thread Jan Lahoda
On Wed, 16 Oct 2024 18:01:28 GMT, Roger Riggs wrote: >> Jan Lahoda has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adjusting the concise help as suggested: 'using main class of a JAR >> archive' and '.jar'/'.java' > > src/java.base/shar

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-21 Thread Jan Lahoda
On Fri, 18 Oct 2024 14:11:12 GMT, Alan Bateman wrote: >> Jan Lahoda has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adjusting the concise help as suggested: 'using main class of a JAR >> archive' and '.jar'/'.java' > > src/java.base/sha

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-21 Thread Jan Lahoda
On Thu, 17 Oct 2024 11:48:43 GMT, Weijun Wang wrote: > `.java to compile and execute a single-file program` > > This is no more precise since we have [JEP 458: Launch Multi-File Source-Code > Programs](https://openjdk.org/jeps/458). Thanks, using "source-file program": https://github.com/openj

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v4]

2024-10-21 Thread Jan Lahoda
> Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not the `java` launcher, but it is difficult find out abo

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-21 Thread Jan Lahoda
On Thu, 17 Oct 2024 06:02:50 GMT, Jaikiran Pai wrote: >> Jan Lahoda has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adjusting the concise help as suggested: 'using main class of a JAR >> archive' and '.jar'/'.java' > > src/java.base/sha

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-21 Thread Jan Lahoda
On Thu, 17 Oct 2024 00:03:49 GMT, David Holmes wrote: >> Jan Lahoda has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adjusting the concise help as suggested: 'using main class of a JAR >> archive' and '.jar'/'.java' > > src/java.base/sha

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-18 Thread Alan Bateman
On Wed, 16 Oct 2024 14:55:34 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-17 Thread Weijun Wang
On Wed, 16 Oct 2024 14:55:34 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread Jaikiran Pai
On Thu, 17 Oct 2024 06:29:05 GMT, Jan Lahoda wrote: >> src/java.base/share/native/libjli/java.c line 1935: >> >>> 1933: NULL_CHECK(printConciseUsageMessage = >>> (*env)->GetStaticMethodID(env, cls, >>> 1934: "printConciseUsageMessage", >>> "(Z)V"));

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread Jan Lahoda
On Thu, 17 Oct 2024 06:14:21 GMT, Jaikiran Pai wrote: >> Jan Lahoda has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adjusting the concise help as suggested: 'using main class of a JAR >> archive' and '.jar'/'.java' > > src/java.base/sha

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread Jaikiran Pai
On Wed, 16 Oct 2024 14:55:34 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread Jaikiran Pai
On Wed, 16 Oct 2024 14:55:34 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread David Holmes
On Wed, 16 Oct 2024 14:55:34 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread Roger Riggs
On Wed, 16 Oct 2024 14:55:34 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread Eirik Bjørsnøs
On Wed, 16 Oct 2024 14:55:34 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread Eirik Bjørsnøs
On Wed, 16 Oct 2024 14:55:34 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-16 Thread Jan Lahoda
On Thu, 10 Oct 2024 17:54:51 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v3]

2024-10-16 Thread Jan Lahoda
> Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not the `java` launcher, but it is difficult find out abo

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-16 Thread Magnus Ihse Bursie
On Wed, 16 Oct 2024 07:45:15 GMT, Magnus Ihse Bursie wrote: >> Or even `.java` to pair with `` > > That might not be the case in the future, if the file uses an "unnamed class" > (https://openjdk.org/projects/amber/design-notes/on-ramp). Also, if you change `` to `.java` (I guess it is a good

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-16 Thread Magnus Ihse Bursie
On Wed, 16 Oct 2024 01:30:10 GMT, David Holmes wrote: >> src/java.base/share/classes/sun/launcher/resources/launcher.properties line >> 241: >> >>> 239: \ -jar to execute the main class in a JAR >>> archive\n\ >>> 240: \ -m [/] to execute the main class of a module\n\ >>> 241: \

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-15 Thread David Holmes
On Thu, 10 Oct 2024 17:54:51 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-15 Thread David Holmes
On Wed, 16 Oct 2024 01:29:16 GMT, David Holmes wrote: >> Jan Lahoda has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adjusting the concise help based on review suggestions. > > src/java.base/share/classes/sun/launcher/resources/launcher.p

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-11 Thread Magnus Ihse Bursie
On Thu, 10 Oct 2024 17:54:51 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-10 Thread Eirik Bjørsnøs
On Thu, 10 Oct 2024 17:56:23 GMT, Jan Lahoda wrote: > I've adjusted the concise help to: > > ``` > $ java > openjdk 24-internal 2025-03-18 > > Usage: java [java options...] [application arguments...] > ``` How about just `[arguments...]` instead of `[application arguments...]`? It's shorter,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-10 Thread Kevin Bourrillion
On Thu, 10 Oct 2024 17:54:51 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-10 Thread Jan Lahoda
On Thu, 10 Oct 2024 17:54:51 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell [v2]

2024-10-10 Thread Jan Lahoda
> Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not the `java` launcher, but it is difficult find out abo

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-09 Thread Goetz Lindenmaier
On Tue, 8 Oct 2024 15:28:17 GMT, Jan Lahoda wrote: > Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-09 Thread Kevin Bourrillion
On Tue, 8 Oct 2024 15:28:17 GMT, Jan Lahoda wrote: > Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-09 Thread Magnus Ihse Bursie
On Tue, 8 Oct 2024 15:28:17 GMT, Jan Lahoda wrote: > Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-09 Thread Magnus Ihse Bursie
On Wed, 9 Oct 2024 07:44:49 GMT, Jan Lahoda wrote: > I was thinking of a different way to say , that would not > loose the descriptiveness, but none so far. Any more descriptive/specific > suggestions than ? I understand why you ended up with that choice of words, since it is not trivial to

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-09 Thread Weijun Wang
On Tue, 8 Oct 2024 15:28:17 GMT, Jan Lahoda wrote: > Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-09 Thread Jaikiran Pai
On Tue, 8 Oct 2024 15:28:17 GMT, Jan Lahoda wrote: > Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-09 Thread Jan Lahoda
On Tue, 8 Oct 2024 15:38:01 GMT, Magnus Ihse Bursie wrote: > Yay! This looks so much better than the default blob. I think you are on the > right track, but the actual message can do with some fine tuning. For > instance, `` seems a bit ... untypically non-formal. What > about just ``? I am n

Re: RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-08 Thread Magnus Ihse Bursie
On Tue, 8 Oct 2024 15:28:17 GMT, Jan Lahoda wrote: > Currently, running `java` without any parameters will lead to an output that > is a full `--help`, which is over 100 lines (on my computer at least), and it > feels overwhelming. And many people might actually want to run JShell/REPL, > not

RFR: 8340133: Investigate if the java launcher could give hints about JShell

2024-10-08 Thread Jan Lahoda
Currently, running `java` without any parameters will lead to an output that is a full `--help`, which is over 100 lines (on my computer at least), and it feels overwhelming. And many people might actually want to run JShell/REPL, not the `java` launcher, but it is difficult find out about JShel