Skip to main content

Can aWeb Start application launch-n-communicate with Applet in web Browser?

4 replies [Last post]
anilp1
Offline
Joined: 2006-03-20

I want a Java Web Start application to launch an applet that will run in the web browser:
- so the applet must be able to run offline
- Can the application and applet communicate via Java Remote Method Interface calls?
(background: I need to have an applet to use Javascript to control the media player running in the web browser).
Anyone knows how to do this? appreciate your input.
thanks,
Anil

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tackline
Offline
Joined: 2003-06-19

Oops. But you can't connect to the listening socket. I guess you could create a webserver on a high port, and make the web page open an applet from it. I'm not sure what happens if you have two applets on the same page with different codebases.

anilp1
Offline
Joined: 2006-03-20

webserver???
No webserver. I have a Java application launched by Web Start offline.

tackline
Offline
Joined: 2003-06-19

IIRC, you are now allowed to open a server socket with a port number of 1024+.

anilp1
Offline
Joined: 2006-03-20

> IIRC, you are now allowed to open a server socket
> with a port number of 1024+.

I wonder. Perhaps web start can launch the applet offline in the browser by opening an html file with the object tags pointing to the server where the web start application was downloaded.

By 'now', do you mean jdk1.6?
(if so was any communication possible prior to that in 1.5)