简体   繁体   中英

Java 9 - How to see help on Jshell?

Anybody here familiar with any good documentation on how could we work with jshell. I am struggling even to find help for same inside the jshell. Any good reference will work too.

In console when you run jshell just type /help

Also you may see verbose description and options for single command by type help before command in console, example: jshell> /help /list

From the documentation :

Tab Completion for Commands

Similar to snippet completion, when you enter commands and command options, use the Tab key to automatically complete the command or option. If the completion can't be determined from what was entered, then possible choices are provided.

The following example shows the feedback when Tab is pressed after the leading slash (/) for commands:

 jshell> /<Tab> /! /? /drop /edit /env /exit /help /history /imports /list /methods /open /reload /reset /save /set /types /vars <press tab again to see synopsis> jshell> / 

Well though you got a answer, I think anybody will get almost all information from oracle docs for REPL ie JSHELL

This is a really nice documentation.

Also, we have another good documentation here

I prefer docs in PDF than reading in CMD. It is same as it is on the online documentation from Oracle.

Java Shell User's Guide - Oracle

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM