An open API service indexing awesome lists of open source software.

https://github.com/nileshkhaire/quickshell

QuickShell is an Eclipse plugin to use Java JShell inside the Eclipse IDE.
https://github.com/nileshkhaire/quickshell

eclipse-ide eclipse-plugin eclipse-terminal hacktoberfest java jshell jshell-script

Last synced: 7 months ago
JSON representation

QuickShell is an Eclipse plugin to use Java JShell inside the Eclipse IDE.

Awesome Lists containing this project

README

          

QuickShell is an Eclipse plugin to use Java JShell (REPL) inside Eclipse IDE.
JDK 9+ is not installed on your system? No worries, you can still use QuickShell using external unzipped JDK. So without disturbing your existing project setup, you can use QuickShell.

## How to setup :
There are multiple ways to install this plugin:

- Download from Eclipse marketplace:

[![Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client](https://marketplace.eclipse.org/sites/all/themes/solstice/public/images/marketplace/btn-install.svg)](http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=5295544 "Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client")

- Install using Eclipse update site:
Go to following page and follow instructions: [https://nileshkhaire.github.io/QuickShell/update/]( https://nileshkhaire.github.io/QuickShell/update/)

- Download plugin JAR file and put into your Eclipse plugin directory "$ECLIPSE_HOME/plugins" . Restart eclipse.

> Note : QuickShell is depends on Eclipse 'TM Terminal' plugin. If it is already not install in your Eclipse (Press Ctrl+Alt+T to check) , please download from Eclipse Marketplace. Without this plugin some features of QuickShell will not work. [ Check this Question for more ]( https://stackoverflow.com/questions/43623643/how-to-open-terminal-inside-eclipse )

## How to configure :

- Go to Eclipse menu, Window -> Preferences -> QuickShell Settings and click on browse to select jshell executable present in JDK installation directory.(JDK 9+) ( jshell.exe in Windows). See screenshot below :

![](Images/QuickShellSettings.png)

> Note : Even though you are using older JDK for running eclipse, you can still use this plugin by using external JDK. For this you can download JDK9+ from [ https://jdk.java.net/archive/ ]( https://jdk.java.net/archive/) unzip it somewhere and select path of jshell executable in setting specified above.

## How to use :

### 1. Java class lines as jshell script :

Select your existing code in java editor and click on right-click menu QuickShell -> Run as JShell script.

![](Images/ExecuteAsJShellScript.png)

### Result

![](Images/ExecuteAsJShellScriptResult.png)

### 2. Run .jsh (jshell file) :

Create a file with extension `.jsh`. for example `test.jsh` and right-click on it and click on the pop-up menu QuickShell -> Run JShell Script. Check the screenshot below:

![](Images/RunJShellFile.png)

### Result

![](Images/RunJShellFileResult.png)

### 3. Start JShell in Eclipse Terminal :

Click on eclipse menu QuickShell -> Start JShell in Eclipse Terminal. This will open jshell in eclipse terminal.

![](Images/StartJShellInEclipseTerminal.png)

### Result

![](Images/StartJShellInEclipseTerminalResult.png)

### 4. Start JShell native Executable :

Click on eclipse menu QuickShell -> Start JShell Executable. This will call jshell executable in a separate window. (Note: This is a platform-dependent feature it may not be supported on your operating system or it may not work on your operating system. I have tested on Windows and it is working as expected. I am trying to support other OS in next releases.

![](Images/StartJShellExecutable.png)

### Result

![](Images/StartJShellExecutableResult.png)