How to Distribute RIA with JNLP and Java 8

Asked

Viewed 188 times

4

I developed an application and at the time of distributing with JNLP, I found an impasse. With Java 8, it asks to sign the Jars and the certificate must be from a recognized CA.

I signed the Jars with a certificate generated by me (it only works for localhost).

Someone knows how to do it so I can do it with the self-signed Jars?

  • What is your operating system?

1 answer

4

This is not a complete answer, but I will use as an example the JAR of Tide with which I had this problem a few days ago. It is a JNLP executable JAR which is also self-signed and was locked in Java 8.

I am using Windows.

First, open the Control Panel and look for the Java icon:

Painel de Controle

Click the Java icon and a new screen will open. Once there, go to the "Security" (or "Security") tab and add your website or URL to the list of exceptions:

Painel de Controle Java

source

On Mac, you can find something similar to the one above by going to System Preferences. (source)

On Linux, you can add the exception sites to the file ${user.home}/.java/deployment/security/exception.sites, being an exception site/URL per line. (source)

  • I’ve done something similar, this url which is? It’s the one I put in Codebase in the manifest or the one of the application where the jar is?

  • @ljzf From the application where the JAR is, from where it is downloaded.

  • i put "http: //10.0.0.10:8080/myapp/" will make any difference?

  • @ljzf I think just http://10.0.0.10 should already be enough. Anyway, this should be easy to test for you.

  • ok, I’m guessing it’s the 8080 port that’s giving me trouble, I can’t remove it in glassfish from the Domain.xml file

  • I took the test and nothing

  • @ljzf If you add a specific host in your file hosts of your operating system and use it as an exception, does it work? In linux you find it in /etc/hosts. In windows you find it in C:\Windows\System32\drivers\etc\hosts. The hosts there defined have priority over the DNS. In addition, it is worth you create a local HTML page accessible by this your host and from it download the JNLP.

  • I created a simple application and tests it worked but with javafx this function is not

Show 3 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.