Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home »  » Java Development Tools (JDT) » Running JShell as an interactive external tool?
Running JShell as an interactive external tool? [message #1769553] Tue, 01 August 2017 14:25 Go to next message
Mary Ellen Foster is currently offline Mary Ellen FosterFriend
Messages: 4
Registered: July 2009
Junior Member
I'm keen to run JShell through Eclipse rather than from the command line directly. I found various instructions online about setting up an external tool (here's one example: https://stackoverflow.com/questions/1562600/is-there-an-eclipse-plugin-to-run-system-shell-in-the-console)

I tried using these instructions to run JShell and it *almost* works -- jshell will launch, but it doesn't seem to be interactive. That is, it won't respond to anything I've typed. See below:

index.php/fa/30212/0/

I have verified that "Allocate console" is checked in the launch configuration. Anything else to try?

If it's relevant, here's my Eclipse version info:
Eclipse IDE for Java Developers

Version: Oxygen Release (4.7.0)
Build id: 20170620-1800
  • Attachment: Capture.PNG
    (Size: 11.30KB, Downloaded 72 times)

[Updated on: Tue, 01 August 2017 14:26]

Report message to a moderator

Re: Running JShell as an interactive external tool? [message #1769614 is a reply to message #1769553] Wed, 02 August 2017 08:23 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1528
Registered: July 2009
Senior Member
Perhaps JShell uses java.io.Console? See https://bugs.eclipse.org/122429
But judging from the that bug, requesting a Console would then simply return null, so JShell might actually NPE or similer.
Previous Topic:Fortify 3.6 Eclipse Plugin
Next Topic:compilerArg for batch compiler/PDE Build -warn:-raw not working
Goto Forum:
  


Current Time: Sun Dec 17 00:34:39 GMT 2017

Powered by FUDForum. Page generated in 0.01697 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software