Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #37515

Re: Java 9 for beginners under Microsoft Windows

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Java 9 for beginners under Microsoft Windows
Date 2017-09-30 15:45 -0400
Organization Aioe.org NNTP Server
Message-ID <oqos8l$7u1$1@gioia.aioe.org> (permalink)
References <Java-20170929171953@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 9/29/2017 12:46 PM, Stefan Ram wrote:
>    Oracle goes all the way, except for the last step.
> 
>    I mean to say that one can install the JDK on Windows,
>    but then one has to /manually/ edit the PATH environment
>    variable so as to be able to execute »javac« from the
>    command line.
> 
>    For an advanced user this is no problem at all. But when
>    I have to explain to beginners how to install the JDK
>    at home, it might take many minutes in a course to explain
>    PATH in a beginner-friendly way, because one cannot assume
>    command-line capabilities and even editing an existing
>    user PATH variable in the GUI might be dangerous when
>    editing is not done carefully.
> 
>    Now, what does this have to do with Java 9?
> 
>    Well, the JShell will help a lot when teaching Java to
>    beginners, but one does not seem to be able to find it
>    in the start menu! (Although Oracle /did/ place some
>    other entries there!)
> 
>    JShell in the Windows start menu would be nice: You can say
>    in 10 seconds:
> 
>        "Install the JDK, then open JShell from the Java section
>        of the start menu, and type in:
>        »java.lang.System.out.println( "Hello world!\n");«".
> 
>    But no!
> 
>    What is the fastest way to explain to a beginner how to open
>    JShell after having installed the JDK 9 under Microsoft Windows?
> 
>        "Open the explorer. Navigate to C:\Program Files\Java\jdk-9\bin
>        and then find and double-click »JShell.exe«!"
> 
>    Is that the way a beginner is supposed to start the
>    JShell after having installed the JDK9 under Windows?

Probably yes.

Alternatively you could distribute a little script to fix PATH for them
and/or create a desktop shortcut to JShell.

Arne

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

Re: Java 9 for beginners under Microsoft Windows Arne Vajhøj <arne@vajhoej.dk> - 2017-09-30 15:45 -0400

csiph-web