Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replacing JavaApplet with Java Web Start Application

I was using JavaApplet in my Webpage, now I'm working on replacing JavaApplet by Java Web Start Application, I have a problem that in JavaScript I was calling Java methods like this: int numOfSomething = myAppletID.getNumofSomething();, but I cannot do this in Java Web Start, how can I solve this issue?

like image 549
Waheeb Alrafati Avatar asked Apr 20 '26 01:04

Waheeb Alrafati


1 Answers

JavaScript communication is not possible with Java Web Start.

From Migrating Java Applets to Java Web Start Applications:

A Java Web Start application does not run within the web browser. So if your applet has any dependency on the browser (for example, Java to JavaScript / JavaScript to Java communications by means of the browser), the communication code will no longer work. The APIs that are affected include:

like image 56
PurkkaKoodari Avatar answered Apr 21 '26 13:04

PurkkaKoodari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!