"致命错误"加载DLL时?

时间:2015-01-29 17:46:21

标签: java dll

编辑:我(排序)想出来了。如果我不让我的jar导出dll,而是手动将它们放入,它可以正常工作。现在,我的问题是,如何从我的jar中导出dll CORRECTLY?

这是什么?我需要加载一些dll的原因是因为我使用java3d,我试图将它与jar文件捆绑而不是让人们安装它。 Eclipse负责处理jar文件,但这使我无法处理dll。每当我运行我的程序时,当一个DLL加载时,整个jvm崩溃。 (注意,如果我没有加载dll,java 3d会自动尝试system.loadLibrary()) 以下是出现的内容:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x772de9d7, pid=8044, tid=7616
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)

# Java VM: Java HotSpot(TM) Client VM (24.65-b04 mixed mode, sharing windows-x86)

# Problematic frame:
# C  [ntdll.dll+0x3e9d7]
#
# Failed to write core dump. Minidumps are not enabled by default on client vers
ions of Windows
#
# An error report file with more information is saved as:
# C:\Users\bram.zerbe\Desktop\test\hs_err_pid8044.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

有人有什么想法吗?

1 个答案:

答案 0 :(得分:0)

现在一切都已修复,我认为发生的事情是我正在阅读和写作的字节[]比需要的更大,并且不起作用。现在全部修好了

相关问题