Hi,
On 07/23/2018 05:19 PM, Sven Reimers wrote:
Hi,
I just tried to use the JShell integration in NetBeans for creating a demo
using an external jar, which has to be on the classpath.
the easiest way to access your JAR's classes is to create a project and
add that JAR as a library to the project. You can then invoke JShell
from the project's context menu - and the shell instance will be
configured with classpath from the project = your JAR.
Comparing my steps from within and without I recognized that not all
commands seem to be available inside NetBeans and some are named
differently....
NetBeans replace the 'command' layer of the JShell: the engine itself is
more or less embeddable, but the command interpreter is not; at least
not to the degree required by proper integration. Module system support
is limited (thanks for the reminder).
Some of the commands were disabled (i.e. formats) since the IDE needs to
interpret shell's output somewhat. But an important command is missing,
please file a bug, the IDE should be kept consistent with the
commandline tool as much as possible.
-Svata
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists