相关疑难解决方法(0)

e(fx)clipse equinox编译错误

我正在开发一个基于OSGI(Equinox)的系统,我遇到了JavaFX,我正在尝试e(fx)clipse {OSGI包项目},我写了一个简单的测试项目,但它给了我一些编译错误.我有一个主要课程:

import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class main extends Application {
    private static main _main ;
    public main () {
        _main = this;
    }
    public static main Get_Main(){
        return _main;
    }
    @Override
    public void start(Stage primaryStage) 
    {
        try 
        {
            FXMLLoader loader = new FXMLLoader();
            loader.setLocation(main.class.getResource("fxml.fxml"));

            primaryStage.setScene(new Scene(loader.load()));
        } 
        catch (IOException e) 
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

我有一个FXML控制器

import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;

public …
Run Code Online (Sandbox Code Playgroud)

osgi javafx runtime-error equinox fxml

0
推荐指数
1
解决办法
1565
查看次数

标签 统计

equinox ×1

fxml ×1

javafx ×1

osgi ×1

runtime-error ×1