2017-01-20 101 views
1

我有最新的eclipse版本。 我無法運行大部分代碼,其中包含: 全屏(true); 包含mp3/mp4文件。 即使這些代碼在我的OTHER計算機上運行良好。Java eclipse,爲什麼JVM崩潰?

# 
# A fatal error has been detected by the Java Runtime Environment: 
# 
# EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x000007feef805c01, pid=2660, tid=0x00000000000016ec 
# 
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) 
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops) 
# Problematic frame: 
# C [msvcr120.dll+0x95c01] 
# 
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 
# 
# An error report file with more information is saved as: 
# C:\44\Bandymai\hs_err_pid2660.log 
# 
# If you would like to submit a bug report, please visit: 
# http://bugreport.java.com/bugreport/crash.jsp 
# The crash happened outside the Java Virtual Machine in native code. 
# See problematic frame for where to report the bug. 
# 

而且這也是。

Exception in Application start method 
java.lang.reflect.InvocationTargetException 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389) 
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source) 
Caused by: java.lang.RuntimeException: Exception in Application start method 
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917) 
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: MediaException: MEDIA_INACCESSIBLE : c 
    at javafx.scene.media.Media.<init>(Media.java:409) 
    at SpalvosFonas.MediaMP4.start(MediaMP4.java:26) 
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863) 
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326) 
    at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294) 
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) 
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) 
    at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) 
    ... 1 more 
Exception running application SpalvosFonas.MediaMP4 

如何解決?我有Windows7 64位。

+0

你應該位於C看一看:\ 44 \ Bandymai \ hs_err_pid2660.log – the8472

+0

https://bugs.openjdk.java.net/browse/JDK-8150261 –

+0

請分享由C hs_error文件的完整日誌:\ 44 \ Bandymai \ hs_err_pid2660.lo – Fairoz

回答

0

該應用程序使用本地庫msvcr120.dll(微軟的Visual Studio 2013)和崩潰不管是什麼原因。也許其他電腦有不同版本的這個DLL,也許是一個不同的Java版本。

我會檢查,如果這兩個環境是相同的,並嘗試更新儘可能多地。

+0

我發現: https://bugs.openjdk.java.net/browse/JDK-8150261 需要切換操作系統 –

+0

它不一定是相同的問題,崩潰在java調用msvcr120.dll方法的相同位置.. 。 – Fairoz