Java初心者です。
ボタンを押すと文章を表示するだけの簡単なアプリを作ってeclipseで実行中に以下のエラーメッセージが発生しました。エラー内容を検索したりしてみましたが原因がわからなかったので質問させていただきました。エラーログも掲載したので原因がわかる方、教えてください。
###エラーメッセージ
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d88202e, pid=664, tid=0x00000cc4
JRE version: Java(TM) SE Runtime Environment (8.0_151-b12) (build 1.8.0_151-b12)
Java VM: Java HotSpot(TM) Client VM (25.151-b12 mixed mode, sharing windows-x86 )
Problematic frame:
C [glass.dll+0x1202e]
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:\Documents and Settings\ \eclipse-workspace\練習\hs_err_pid664.log
###該当のソースコード
package 練習;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class EventHandle extends Application {
public void start (Stage stage) {
stage.setWidth(300);
stage.setHeight(140);
Button button = new Button("ボタン"); button.setOnAction(event -> System.out.println("ボタンが押されました")); BorderPane root = new BorderPane(); root.setCenter(button); stage.setScene(new Scene(root)); stage.show(); } public static void main(String[] args) { launch(); }
}
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/28 03:44
2017/11/28 08:15