Hi Eirik >From memory: It was only like 6 months after my Rhino-->Nashorn update/rewrite was integrated into the NB code base that Oracle announced that Nashorn would eventually be removed from the JDK. Jarouslav Tulach kindly took upon him to make sure NB would use a more robust approach where Graal's Javascript engine is used if available and Nashorn is the fallback.
Have a look: https://github.com/apache/netbeans/blob/master/platform/core.network/src/org/netbeans/core/network/proxy/pac/impl/NbPacScriptEvaluator.java#L348 With a log level of FINE you should be able to see exactly which Javascript engine is in use in your own case: https://github.com/apache/netbeans/blob/master/platform/core.network/src/org/netbeans/core/network/proxy/pac/impl/NbPacScriptEvaluator.java#L284 So you can start your IDE with something like this: -J-Dorg.netbeans.core.network.proxy.level=FINEST to see what is in effect. However, you'll not see anything related to PAC evaluation unless NetBeans actually discovers a PAC file in the network. Kind regards Lars On Mon, May 9, 2022 at 10:42 PM Eirik Bakke <eba...@ultorg.com> wrote: > > Hi, NetBeans friends. > > > > Back in NetBeans 9.0, Lars Bruun-Hansen integrated a brand new proxy server > auto-detection system [1], based on the earlier netbeansproxy2 project(?) > > > > Does this still work in Java 17? > > In NetBeans Platform applications, are there dependencies that need to be > bundled beyond OpenJDK, in order for this to work? > > > > I have heard about Nashorn, Rhino, and GraalVM, one of which seem to have > been required to execute proxy server PAC configuration scripts (which are > apparently pieces of JavaScript). Which of these three are we using these > days? Is the JavaScript engine a part of OpenJDK, or must it be bundled > externally? > > > > -- Eirik > > [1] https://issues.apache.org/jira/browse/NETBEANS-96 > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists