Bug 270692

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

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.
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo