Bug 1637360 - Base install of Fedora 29 [beta] includes java but not the REPL (jshell)
Summary: Base install of Fedora 29 [beta] includes java but not the REPL (jshell)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: java-11-openjdk
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: jiri vanek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-09 07:05 UTC by PlaceHolder
Modified: 2018-10-09 07:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-09 07:58:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description PlaceHolder 2018-10-09 07:05:44 UTC
Description of problem:
Base install of Fedora 29 [beta] includes java JRE but not the REPL (jshell)
but seems to include license info related to the jshell.

Version-Release number of selected component (if applicable):
openjdk version "11-ea" 2018-09-25
OpenJDK Runtime Environment (build 11-ea+28)
OpenJDK 64-Bit Server VM (build 11-ea+28, mixed mode, sharing)

How reproducible:
Every time

Steps to Reproduce:
1. Instal Fedora 29 [beta]
2. dnf update
3. which jshell

Actual results:
[localhost ~]$ which java
/usr/bin/java
[localhost ~]$ java -version
openjdk version "11-ea" 2018-09-25
OpenJDK Runtime Environment (build 11-ea+28)
OpenJDK 64-Bit Server VM (build 11-ea+28, mixed mode, sharing)
[localhost ~]$ which jshell
/usr/bin/which: no jshell in (/home/foo/.local/bin:/home/foo/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin)
[localhost ~]$ sudo updatedb
[localhost ~]$ locate jshell
/usr/lib/jvm/java-10-openjdk-10.0.2.13-7.fc29.x86_64/legal/jdk.jshell
/usr/lib/jvm/java-10-openjdk-10.0.2.13-7.fc29.x86_64/legal/jdk.jshell/ADDITIONAL_LICENSE_INFO
/usr/lib/jvm/java-10-openjdk-10.0.2.13-7.fc29.x86_64/legal/jdk.jshell/ASSEMBLY_EXCEPTION
/usr/lib/jvm/java-10-openjdk-10.0.2.13-7.fc29.x86_64/legal/jdk.jshell/LICENSE
/usr/lib/jvm/java-11-openjdk-11.0.ea.28-8.fc29.x86_64/legal/jdk.jshell
/usr/lib/jvm/java-11-openjdk-11.0.ea.28-8.fc29.x86_64/legal/jdk.jshell/ADDITIONAL_LICENSE_INFO
/usr/lib/jvm/java-11-openjdk-11.0.ea.28-8.fc29.x86_64/legal/jdk.jshell/ASSEMBLY_EXCEPTION
/usr/lib/jvm/java-11-openjdk-11.0.ea.28-8.fc29.x86_64/legal/jdk.jshell/LICENSE
[nick@localhost ~]$ jshell
bash: jshell: command not found...


Expected results:
I believe the REPL is part of Java since JDK9 so I would expect it to be included with any Java install.  (Alternatively, I would expect I could install it easily by installing another package, but didn't find one when searching dnf.)


Other info:
I assumed that perhaps, because the .headless version was installed, that might have had something to do with it.  But I installed "sudo dnf install java-11-openjdk" and nothing seems to have changed.  I can't find jlink either, so I presume this is somehow not a complete JDK or else I am somehow confused about what to expect.

Comment 1 Severin Gehwolf 2018-10-09 07:58:59 UTC
It's part of java-11-openjdk-devel (things like jlink too). One way to install it without knowing this is:

$ dnf install \*/bin/jshell

Since there is a package providing this functionality (java-11-openjdk-devel) which can be easily installed via dnf, I'm closing this issue. Feel free to re-open if you disagree.

$ rpm -qa | grep java-11-openjdk
java-11-openjdk-11.0.ea.28-8.fc29.x86_64
java-11-openjdk-devel-11.0.ea.28-8.fc29.x86_64
java-11-openjdk-headless-11.0.ea.28-8.fc29.x86_64
$ jshell
|  Welcome to JShell -- Version 11-ea
|  For an introduction type: /help intro

jshell>


Note You need to log in before you can comment on or make changes to this bug.