2

I have written a browser using the JavaFX WebView control. Everything is fine until I try to load an encrypted page. I try https://www.gmail.com and I get an "Unknown Error" in the exception property of the load worker. This only happens when I package the application as a stand-alone; when I run the project in NetBeans everything is fine. I am guessing it has to do with SSL certificates, but I tried pretty much everything I could think of, including importing each certificate in the trust store with "keytool," but nothing works.

Any ideas? Much appreciated. Thanks.

2
  • How do you package as standalone? Commented Nov 14, 2012 at 0:39
  • @jewelsea In the build.xml file, I uncommented the <target name="-post-jfx-deploy"> element and I set the nativeBundles attribute's value to "all" in the <fx:deploy> element. What gets me is that everything works as intended with the exception of the https sites. And I only get an "Unknown Error." Commented Nov 17, 2012 at 0:12

1 Answer 1

5

Does your browser work with https sites when launching from an IDE (Eclipse, Netbean)? If so, the difference might be the JRE. You might need to copy the file sunjce_provider.jar to the bundled JRE. I use a Mac and sunjce_provider.jar is located in /Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home/jre/lib/ext.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks sooooo much for your answer. U's a genious!!! That was the problem. For a while I thought I was stuck and almost gave up and started to think of alternatives. For those who run in the same problem, check out this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.