I'm unable to get a signed application to start

I built a small built-in browser JavaFX application that uses a "FileChooser" element to access a file on the desktop.

I'm fairly certain that this file access will require the application must be signed, what I did with a real certificate. (I also tried with a self-generated certificate too, with the same results.)

The problem is this race, that it results in an error in the browser:
"Run-time error. Click for more information"(Firefox)

Or on IE:
«JavaFX application failed to launch because of the configuration of the system (error show Invisibles).» See java.com/javafx for troubleshooting information. The 'details' really say anything in particular that gives me a clue.

I get the result even if I try to run the application directly from Netbeans. However, if I deselect the option "Request unlimited access" in the project properties, the application will run (from Netbeans as well as deployed on a server), but the file you choose won't work, because of a security violation.

Can someone tell what I am doing wrong? I guess that these signed applications should work at this point. Maybe it's something in my code, but I'm a little bit lost at the moment.

With the #1 option - I have modified and rebuilt the pots 3 rd-party and them referenced in NetBeans. When I choose clean and build, the treated Ant produces an error: "jarsigner returns 1. So it doesn't seem to work at all.

As long you have re-built the jars properly without the original signature, I think it should work.
Here is an example of unsigning a pot using Ant:
http://Frank.zinepal.com/unsign-a-jar-with-Ant

Don't you think that the idea of multiple-JNLP would work if NetBeans applies to "my" signature for 3 rd-party bribes? Apart from manually copying the original pots in the \dist directory, is there a better way to tell NetBeans to leave the JAR 3 rd-party only (IE, not to sign again)?

I think it is supposed to work (this is the mixed code signing situation I mentioned in my previous post).
For example, from your description that looks like the build of NetBeans default can't really not this type of deployment, so you should create a custom version that does what you need and are not triggered by NetBeans - what is feasible, but boring - it's looks like you tried this, but have been unable to operate as expected. For NetBeans specific help, you better post to a forum of NetBeans (although you might be only the second person who tried to do it with a JavaFX application).

You should also check that the end-user experience is acceptable, because I think that the dialog box and alert to the situation of mixed code management is different.

Search the section deployment guide "use for the descriptors of the Extension"-I think it documents how to do what you want if you are using a rather custom build file to let the NetBeans to do the work:
http://docs.Oracle.com/JavaFX/2/deployment/javafx_ant_task_reference002.htm#CIABGCEE

Hmm, a lot of running to walk around to deploy an application that can open a file...

Tags: Java

Similar Questions

Maybe you are looking for