marcojakob / javafx-ui-sandbox

Sandbox UI Controls from the official OpenJFX repository
MIT License
81 stars 56 forks source link

Project can't be used when the jar is signed (original javafx package) #5

Closed xjensh closed 11 years ago

xjensh commented 11 years ago

We sign all of our jars and all of our dependencies with our companies certificate. Running a signed JavaFX application that was packaged as a native bundle using the official FX package tools we'll get this exception:

java.lang.SecurityException: class "javafx.scene.control.Dialogs"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:943) at java.lang.ClassLoader.preDefineClass(ClassLoader.java:657) at java.lang.ClassLoader.defineClass(ClassLoader.java:785)

This is because of the same package name as the original FX source.

Do you have any plans to modify the package name to prevent this issue?

marcojakob commented 11 years ago

In that case you could take the source and just refactor the packages. You will need to make some path adjustments in the Dialogs class.

I don't plan to put too much work in improving the dialogs, because they should be included in the JavaFX 8 release that is due this year. So I'd recommend you make a temporary solution for the next few months and then remove the library once JavaFX 8 has been released.

xjensh commented 11 years ago

Yep, that's what I've done while waiting for your answer ;)

Understandably attitude! Thanks for the answer and the port to Java FX 2.x - helped us a lot!