gpt4 book ai didi

JavaHL 未加载 (NoClassDefError)

转载 作者:可可西里 更新时间:2023-11-01 13:16:33 25 4
gpt4 key购买 nike

我已经重新安装了 Windows 并解压缩了 Eclipse 的新副本。尽管如此,我一直无法通过 Subclipse 访问 ssh 存储库。问题似乎出在 JavaHL 上,来自 Tigris 网站的测试给出了 NoClassDefError。尽管这可以被视为软件问题,但我希望之前有人遇到过这个问题。有没有办法来解决这个问题?很紧急。

P.S: Subclipse 会在配置文件中查找以将调用转发给 TortoiseSVN 的 PLink 客户端,后者又会获得一个在 Pageant 中加载的 key 。

编辑:这是重新安装 jdk 后 java -jar javahltests.jar now 的输出:

.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.
E.E.E.E.E.E.E.E.E.E
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0xffbadd11, pid=752, tid=656
#
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) Client VM (17.0-b16 mixed mode, sharing windows-x86 )
# Problematic frame:
# C 0xffbadd11
#
# An error report file with more information is saved as:
# C:\\hs_err_pid752.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

这是我之前的输出:

.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.
E.E.E.E.E.E.E.E.E.E
Time: 0,047
There were 50 errors:
1) testCreate(org.tigris.subversion.javahl.SVNAdminTests)java.lang.UnsatisfiedLinkError: no svnjavahl-1 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.tigris.subversion.javahl.NativeResources.loadNativeLibrary(NativeResources.java:79)
at org.tigris.subversion.javahl.SVNAdmin.<clinit>(SVNAdmin.java:32)
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
2) testSetRevProp(org.tigris.subversion.javahl.SVNAdminTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
3) testLogDate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
4) testVersion(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
5) testPathValidation(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
6) testPathIsURL(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
7) testMergeinfoParser(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
8) testBasicStatus(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
9) testOODStatus(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
10) testBasicCheckout(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
11) testBasicCommit(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
12) testBasicProperties(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
13) testBasicUpdate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
14) testBasicMkdirUrl(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
15) testCopy(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
16) testMove(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
17) testBasicMergingUpdate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
18) testBasicConflict(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
19) testBasicCleanup(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
20) testBasicRevert(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
21) testBasicSwitch(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
22) testBasicDelete(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
23) testBasicCheckoutDeleted(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
24) testBasicNodeKindChange(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
25) testBasicImport(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
26) testBasicCat(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
27) testBasicCatStream(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
28) testBasicLs(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
29) testBasicAddIgnores(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
30) testBasicImportIgnores(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
31) testBasicInfo(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
32) testBasicLogMessage(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
33) testBasicVersionInfo(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
34) testBasicLocking(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
35) testBasicInfo2(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
36) testBasicChangelist(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
37) testBasicMerge(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
38) testMergeUsingHistory(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
39) testMergeReintegrate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
40) testMergeConflictResolution(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
41) testRecordOnlyMerge(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
42) testDiff(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
43) testDiffSummarize(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
44) testBasicIsAdminDirectory(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
45) testBasicCancelOperation(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
46) testDataTransferProgressReport(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
47) testTreeConflict(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
48) testObstructionTolerance(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
49) testBasicBlame(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
50) testCommitRevprops(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin
at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)
at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)

FAILURES!!!
Tests run: 50, Failures: 0, Errors: 50

最后,这是我在 Eclipse IDE 中得到的结果:

Failed to load JavaHL Library.
These are the errors that were encountered:
F:\eclipse helios\eclipse-jee-helios-win32\eclipse\plugins\org.tigris.subversion.clientadapter.javahl.win32_1.6.12\libsvnjavahl-1.dll: Can't find dependent libraries
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = F:\eclipse helios\eclipse-jee-helios-win32\eclipse\plugins

最佳答案

我在 Ubuntu 中安装 Eclipse Helios 时遇到了同样的问题。为了解决这个问题,我必须执行以下操作。

  1. 安装svn库

    $ sudo apt-get install libsvn-java

  2. 找到本地库的位置。在我的例子中是/usr/lib/jni。 (如果你刚刚安装了这个库,你可能必须在使用/etc/cron.daily/mlocate 运行定位之前更新定位数据库 - 在 Ubuntu 10.10 上,其他操作系统可能有不同的脚本名称)

    $ 定位 libsvnjava

    在我的例子中找到以下文件:/usr/lib/jni/libsvnjavahl-1.so、/usr/lib/jni/libsvnjavahl-1.so.0、/usr/lib/jni/libsvnjavahl-1。所以.0.0.0

  3. 找到eclipse安装目录的位置。对于自定义安装,我选择/usr/local/eclipse

  4. 编辑该目录中包含的 eclipse.ini。它是一个包含所有 eclipse 选项的文件,如 Eclipse Documentation 中所述。 .在该文件中添加一行内容如下(根据您的 native 库路径进行调整)

    -Djava.library.path=/usr/lib/jni

  5. 重新启动 Eclipse。现在应该一切正常(在某些情况下,您可能需要重新启动 Linux)。

关于JavaHL 未加载 (NoClassDefError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3274890/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com