gpt4 book ai didi

java - 在 Windows 7 中运行 Jar 时为 "Execution Protection Violation"

转载 作者:可可西里 更新时间:2023-11-01 14:19:06 24 4
gpt4 key购买 nike

我正在尝试导出用 LibGDX、Java 和 Flixel-Android 编写的游戏。游戏在Mac上开发,以Jar形式在其他Mac系统上运行。在 Windows 7 机器上运行它时,它在完全启动之前就退出了,我得到了这个转储:

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x04a2b400, pid=5824, tid=5912

JRE version: 7.0_09-b05 Java VM: Java HotSpot(TM) Client VM (23.5-b02 mixed mode, sharing windows-x86 ) Problematic frame: C 0x04a2b400

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

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.

控制台窗口还在显示之前不久打印“执行保护违规”,然后将上面的内容也转储到文本文件中。文本文件包含一个非常非常长的转储,除非人们认为有必要,否则我不会在此处发布。

我不知道是什么原因造成的,我也没有太多时间来解决这个问题!有人有线索吗?

编辑 - 我已将其缩小为从 LibGDX 商店加载文件的一段代码。这是本地库问题吗?

编辑 - 它与在 Flixel-Android 中更改一段文本的大小有某种关系。

最佳答案

我认为 native 库无法在 Windows 和/或 Java 7 上正常工作(我知道,这很明显)。

请记住,Android 的 java 是 java 1.5 兼容的,因此我可以看到该库在 java 7 上中断。我会在库的网站上验证支持哪些 java 版本。


编辑

看起来 java 7 是罪魁祸首:http://code.google.com/p/libgdx/issues/detail?id=824 .我想我是一个专家谷歌用户...

关于java - 在 Windows 7 中运行 Jar 时为 "Execution Protection Violation",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13322921/

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