JavaFX build Artifact and install rpm file, run the app no work

Answered

My OS is CentOS, the VM of Virtual Box.

I create a JavaFX project(called JavaFXApp) and add a button to it. I also add a java file contains the main function.

At last, I set Artifacts/JavaFX  Native bundle as "all" in Project Settings.

And then Build->Build Artifacts. 

I use root to install javafxapp-1.0-1.x86_64.rpm and I see the JavaFXApp in "other" page of the application. I click the JavaFXApp but it does not work. There is no UI window appears.

I already set Main class as sample.Main in Run/Debug Configuration. I also set Application class as sample.Main in Project Settings/Artifacts JavaFX TabPage.

Does somebody know how to solve this problem?

0
3 comments

Do you see the application when you running it via Run/Debug Configuration?

0
Avatar
Permanently deleted user

I had set the Main Class as sample.Main and export again. When I install rpm file, it appears conflict problems. Sorry! my language is traditional Chinese language.

# rpm -ivh javafxapp-1.0-1.x86_64.rpm

正在準備…                       ################################# [100%]

        套件 javafxapp-1.0-1.x86_64 已經安裝

        從 javafxapp-1.0-1.x86_64 安裝的檔案 /opt/JavaFXApp/app/JavaFXApp.jar 與來自套件 javafxapp-1.0-1.x86_64 的檔案產生衝突

0

Please sign in to leave a comment.