This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270692

Summary: Ability to provide jshell commandline-flags
Product: java Reporter: 38leinaD
Component: JShellAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description 38leinaD 2017-05-20 17:57:09 UTC
E.g. to access incubating features like the new httpclient, there is the need to start jshell with "./jdk-9_168/bin/jshell --add-modules jdk.incubator.httpclient".
For the jshell within netbeans there seems to be no way to customize/configure this. If i am not missing anything, there seems to be no possibility today to use incubating features from within jshell within netbeans.
Comment 1 Svata Dedic 2017-05-20 19:46:07 UTC
It's not possible currently, but I can suggest a workaround - make a project that requires that module in its module-info. Then use Execute JShell from the project's popup menu. JShell should launch using the project configuration and should get the add-module option.
Comment 2 38leinaD 2017-05-22 12:54:07 UTC
thanks. this will help as a workaround for now.