【问题标题】:Sencha Nashorn engine is planned to be removed from a future JDK releaseSencha Nashorn 引擎计划从未来的 JDK 版本中删除
【发布时间】:2020-12-26 03:15:36
【问题描述】:

知道如何修复/删除此警告吗?

我只是在做一个 sencha app build 或 npm run clean && cross-env webpack --env.profile=modern --env.environment=production --env.treeshake=yes

操作系统是 Ubuntu 18 LTS。

i [ext]: ext-webpack-plugin v7.2.0, Ext JS v7.2.0 Commercial Edition, Sencha Cmd v7.2.0.84, webpack v4.44.1n/a
i [ext]: Starting production build for extjs
i [ext]: Processing Build Descriptor : modern (production environment)
i [ext]:  [ERR] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.gson.internal.bind.ReflectiveTypeAdapterFactory (file:/builds/interpid/extjs-package-ipdu/node_modules/@sencha/cmd/dist/lib/closure-compiler-v20180610.jar) to field java.io.File.path WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.bind.ReflectiveTypeAdapterFactory WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] 
i [ext]: Loading compiler context
i [ext]: Loading app json manifest...
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Processing data with ClosureCompressor
i [ext]: Writing concatenated output to file /build/production/myApp/generatedFiles/modern/app.js
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Writing content to /build/temp/production/myApp/modern/slicer-temp/bootstrap.json
i [ext]: Writing content to /build/temp/production/myApp/modern/slicer-temp/bootstrap.js
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Writing content to /build/production/myApp/generatedFiles/modern.json
i [ext]: Fashion build complete for /build/temp/production/myApp/modern/sass/myApp-all.scss
i [ext]: Fashion build completed in 5.557 sec.
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Writing content to /build/production/myApp/generatedFiles/modern.json
i [ext]: Writing content to /build/production/myApp/microloader.js
i [ext]: Appending content to /build/production/myApp/microloader.js
i [ext]: Writing content to /build/production/myApp/index.html
i [ext]:  [ERR] Warning: Nashorn engine is planned to be removed from a future JDK release
i [ext]: Ending production build for extjs

【问题讨论】:

  • 我也一直在想这个问题...我实际上希望 Sencha 将 Cmd 重写为不需要 Java,但目前,我想我们必须处理那个错误输出。

标签: jvm nashorn


【解决方案1】:

我想跟进这件事,因为前几天我顿悟了。对于我的家庭项目,当我开始使用开放工具/npm 方法时,我意识到我不必安装 Java。在工作中,我们有一个项目是在开放工具方法之前创建的,所以我们必须下载并安装 Sencha Cmd exe,它需要 Java。

长话短说,我从工作机器上卸载了 Java,删除了 node_modules 目录和 package-lock.json 文件,然后重新运行了 npm install。当我这样做时,我得到了一个全新的package-lock.json,并且应用程序在没有 Java 的情况下构建/运行。我认为管道中有一些聪明的地方可以检查你是否安装了 Java,如果你安装了,你会得到完全不同的依赖关系。

【讨论】:

    猜你喜欢
    • 2020-02-13
    • 2014-08-19
    • 2019-01-22
    • 1970-01-01
    • 2019-07-14
    • 1970-01-01
    • 1970-01-01
    • 2019-01-13
    • 2015-03-03
    相关资源
    最近更新 更多