You are not logged in.

#1 2018-05-28 17:03:41

Kabir
Member
From: India
Registered: 2016-12-06
Posts: 59

[Solved] How to fire up jshell

I cant seem to figure out how to fire up jshell, the command <jshell> isnt recognized <zsh: command not found: jshell>.
I installed the openjdk10 package per the wiki and then logged out and back in. Programs written in Java run fine, I suppose I'm missing some package?

Thanks!

Last edited by Kabir (2018-05-28 18:42:37)

Offline

#2 2018-05-28 17:26:01

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [Solved] How to fire up jshell

What's in your $PATH?

Also, is jshell correctly installed? (it is provided by both jdk9-openjdk and jdk10-openjdk)
Have you checked whether the /etc/profile.d files are sourced correctly by your shell after logging in (and are correct)?


pkgshackscfgblag

Offline

#3 2018-05-28 17:42:24

Kabir
Member
From: India
Registered: 2016-12-06
Posts: 59

Re: [Solved] How to fire up jshell

Thanks! The files werent being sourced correctly, I ran:

source /etc/profile

in the terminal and was able to run jshell, but to make this persistent, I added the source line in my zshrc, is that correct?

% echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/cuda/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

Offline

#4 2018-05-28 18:10:56

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: [Solved] How to fire up jshell

That's odd, though - /etc/profile should be sourced by the login shell (see /etc/zsh/zprofile).

Run `pacman -Qkk zsh` to check whether zsh is properly installed.


pkgshackscfgblag

Offline

#5 2018-05-28 18:41:55

Kabir
Member
From: India
Registered: 2016-12-06
Posts: 59

Re: [Solved] How to fire up jshell

I removed the source line from zshrc and rebooted and now jshell works without the source line being added. I guess logging out and back in must not have worked and I hadnt rebooted since I installed jdk.
Thanks!

Offline

Board footer

Powered by FluxBB