JavaFX Application name

FoY

I developed an app using JavaFX2 and generated a jnlp for it. Everything works fine. There is just one small thing that irritates me. When I run the jnlp, it pops up a warning window asking if I want to run the application. So far so good. Name, Publisher, Location and some warning text is visible in the popup window. Publisher and Location have the right corresponding text (i.e. company name and the website) but Name has the value of "com/favafx/main/Main". I've checked and name and the title fields ARE there in the jnlp file with the appropriate text.

I tried to make several JavaFX2 sample apps too and they have the same problem. It seems there's some issue with Javafx2? Does anyone have a solution to this?

zhujik

Since Java 7 update 45, the Manifest has a "security" attribute that is called Application-Name. If this attribute is not set, the main class is the name. The main class of every javafx application that is deployed is com.javafx.main.Main. So that explains that.

Read: http://www.oracle.com/technetwork/java/javase/7u45-relnotes-2016950.html

Obvious solution: add manifest attribute Application-Name to your build process.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related