Weka 3.8.6 错误无法加载应用程序

问题描述 投票:0回答:3
Environment variable 'JAVA_OPTS' does not exist!
Environment variable 'CLASSPATH' does not exist!
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by weka.gui.GUIChooserApp (file:/C:/Program%20Files/Weka-3-8-6/weka.jar)
WARNING: Please consider reporting this to the maintainers of weka.gui.GUIChooserApp
WARNING: System::setSecurityManager will be removed in a future release

1

ar情况可以帮助我:< THANKS A LOT

我使用 weka 版本 3.8.6 时遇到错误

当我尝试使用资源管理器时。应用程序加载速度非常慢,几乎没有响应,我

几乎没有给出任何错误,当我尝试使用控制台版本时,它只显示警告消息

任何有类似情况的人都可以帮助我:< THANKS A LOT

weka
3个回答
0
投票

您可能想尝试不同版本的 Java 而不是 Weka 附带的版本,以排除这是罪魁祸首:

  • adoptium.net 下载 Java 11 的 ZIP 文件(不是 MSI!)并将其解压缩到某个位置,例如桌面上(通过使用 ZIP 文件,您不必成为管理员即可使用它) .

  • 确定您刚刚提取的可执行文件

    java.exe
    的绝对路径,例如:

    C:\Users\MyUser\Desktop\jdk-11.0.18+10\bin\java.exe
    
  • 确定Weka安装的绝对路径

    weka.jar
    ,例如:

    C:\Program Files\Weka-3-8-6\weka.jar
    
  • 打开 Windows 命令提示符。

  • 使用您刚刚确定的路径运行以下命令来启动 Weka(在路径周围使用 双引号以考虑路径中的潜在空间):

    "JAVAEXE_PATH" -jar "WEKAJAR_PATH"
    

    使用上述路径转换为:

    "C:\Users\MyUser\Desktop\jdk-11.0.18+10\bin\java.exe" -jar "C:\Program Files\Weka-3-8-6\weka.jar"
    

如果不再慢了,那么Weka自带的Zulu Java很可能就是罪魁祸首。

如果没有,您将必须检查其他程序(例如防病毒程序)是否可能导致速度变慢。


0
投票

我想我发现了一些东西:v

> java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @32464a14
        java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
        java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
        weka.core.WekaPackageClassLoaderManager.injectClasses(WekaPackageClassLoaderManager.java:792)
        weka.core.WekaPackageClassLoaderManager.injectAllClassesInFromStream(WekaPackageClassLoaderManager.java:690)
        weka.core.WekaPackageClassLoaderManager.injectMTJCoreClasses(WekaPackageClassLoaderManager.java:118)
        weka.core.WekaPackageManager.<clinit>(WekaPackageManager.java:255)
        weka.core.ResourceUtils.readProperties(ResourceUtils.java:241)
        weka.core.ResourceUtils.readProperties(ResourceUtils.java:184)
        weka.core.Utils.readProperties(Utils.java:183)
        weka.core.logging.Logger.<clinit>(Logger.java:50)
        weka.gui.GUIChooserApp.main(GUIChooserApp.java:1660)
        java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        java.base/java.lang.reflect.Method.invoke(Method.java:568)
        weka.gui.SplashWindow.invokeMain(SplashWindow.java:306)
        weka.gui.GUIChooser.main(GUIChooser.java:92)

        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
        at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
        at weka.core.WekaPackageClassLoaderManager.injectClasses(WekaPackageClassLoaderManager.java:792)
        at weka.core.WekaPackageClassLoaderManager.injectAllClassesInFromStream(WekaPackageClassLoaderManager.java:690)
        at weka.core.WekaPackageClassLoaderManager.injectMTJCoreClasses(WekaPackageClassLoaderManager.java:118)
        at weka.core.WekaPackageManager.<clinit>(WekaPackageManager.java:255)
        at weka.core.ResourceUtils.readProperties(ResourceUtils.java:241)
        at weka.core.ResourceUtils.readProperties(ResourceUtils.java:184)
        at weka.core.Utils.readProperties(Utils.java:183)
        at weka.core.logging.Logger.<clinit>(Logger.java:50)
        at weka.gui.GUIChooserApp.main(GUIChooserApp.java:1660)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at weka.gui.SplashWindow.invokeMain(SplashWindow.java:306)
        at weka.gui.GUIChooser.main(GUIChooser.java:92)
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by weka.gui.GUIChooserApp (file:/C:/Users/Kenzn2/Downloads/Compressed/stable-3-8/weka/weka.jar)
WARNING: Please consider reporting this to the maintainers of weka.gui.GUIChooserApp
WARNING: System::setSecurityManager will be removed in a future release

enter image description here


0
投票

有人知道如何解决吗?我有与此相同的问题,我多次安装和卸载它,但我的 weka 仍然无法打开

© www.soinside.com 2019 - 2024. All rights reserved.