Fabio D'Orta

Greenhorn
+ Follow
since Feb 24, 2015
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fabio D'Orta

I have found the solution googling on the internet (stackoverflow). I will post the reply for anybody who will find the same problem.

In netbeans do the following:

1) File | New Project | JavaFx | JavaFx Application
2) Right click on the Project name and select Properties
3) In Build section go to Deployment and check the Request unrestricted access
4) In the Run section go to Run and select in Browser.

Following these steps the webview is shown on the web application.

Have a nice day,

Fabio
5 years ago
Hello all,

I was trying to develop a web application with javafx that shows google maps. I have used netbeans to generate the html file that embeds the application.
An example code I have found on internet is the following:



The problem is that when I open the html file generated by netbeans (located in the dist/ folder) in the browser I get a white screen where there should be the webview loaded.

Do you have the same problem or I'm missing something?

Thank you for your attention.

Fabio
5 years ago
Hi, thank you all for the answers.

As suggested by Paul Clapham, I enabled the Java console from the java control panel.
And the error was:
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")

So I went to my java.policy file located in java.home/lib/security/ and I wrote the following

grant codeBase "url or file where the applet is" {
permission java.lang.RuntimePermission "modifyThread";
};

And now the applet is working.

Again, thank you for your support.

Fabio
5 years ago
I have also tried to put the applet on a public web page:

http://latastiera.altervista.org/


but still it doesn't work. Any suggestions?
5 years ago
Hello to everyone, I'm trying to realize an applet that has a portion of code parallelized.
When I run the following code on Eclipse (Luna, java vers=8), the code runs and pops-up the two errors messages. On the other hand, when I embed the code in a html page the code shows only the first error message. It seems that calling the ForkJoinPool class crushes the applet on firefox. Do you know why? Here is the code.

5 years ago