You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "davidbitterlich (via GitHub)" <gi...@apache.org> on 2023/05/23 12:15:44 UTC

[GitHub] [netbeans] davidbitterlich opened a new issue, #5977: Unable to start remote debugging due to error "Unable to create javax script engine for javascript"

davidbitterlich opened a new issue, #5977:
URL: https://github.com/apache/netbeans/issues/5977

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   When I add a remote java platform to my project and try to debug my project using this remote java platform, I get the error "Unable to create javax script engine for javascript".
   
   I am using NetBeans' bundled Ant (1.10.8 as of writing this report)
   
   ### How to reproduce
   
   1. Create a new Java Ant Project (File -> New Project -> Java with Ant -> Java Application)
   2. Add a new Configuration in the project properties
   3. Add a new Remote Platform in the project properties (localhost:22 as remote target on NonWindows platforms can be used, too)
   4. Start debugging the project using the Remote Platform defined before
   
   NetBeans will crash in the "jar:" step, remote-project-impl.xml:129: Unable to create javax script engine for javascript
   
   Workaround: Force NetBeans to use OpenJDK 11 as default platform instead of OpenJDK 17
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 12.6 or earlier
   
   ### Operating System
   
   macOS 13.4
   
   ### JDK
   
   17.0.7, OpenJDK, aarch64
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   NetBeans uses by default the standard JDK if it does not come with a bundled JDK. In my case this is OpenJDK 17. When I use an older version of OpenJDK (by editing /Applications/NetBeans/Apache NetBeans 17.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf the line netbeans_jdkome to point to OpenJDK 11), the issue will be gone. Instead I get another issue, for which I will create a separate bug report.
   
   The rest of the IDE seems to run well using JDK 17 so I think it is generally compatible with JDK 17, right?
   
   I also think that the Ant version that comes bundles with NetBeans 17 (Ant 1.10.8) is not compatible with OpenJDK 17 (Since Nashorn has been dropped with JDK 15; the most recent version of Ant does not have this problem anymore)
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists