有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

加载dll时出现java“致命错误”?

编辑:我(索托夫)弄明白了。如果我不让我的jar导出DLL,而是手动将它们放入,那么它就可以正常工作。现在,我的问题是,如何从我的罐子中正确导出DLL

这是什么?我需要加载一些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) 个答案

  1. # 1 楼答案

    现在一切都安排好了,我想发生的是,我正在读和写的字节[]比需要的大,无法工作。都修好了