简体   繁体   中英

Java applets run in web browser

What does it mean that Java applet runs in web browser? Does it share the same address space as browser? Isn't it created as single process?

Since Java SE 6u10:

The new way of executing applets has architectural similarities to Java Web Start technology, but tighter browser integration. Applets no longer execute in a Java Virtual Machine (JVM) inside the web browser. Instead, a separate JVM machine process is launched to execute applets. By default, only one JVM machine is launched, but you have the opportunity to launch more than one JVM machine, and you get support per-applet command-line arguments, so you can affect heap size or other requests.

Most modern browsers support plugins, for instance through the NPAPI .

This allows the Java runtime to run inside of the browser process, as a plugin, executing the Java applet.

Whether or not it runs in the same process or not is up to the browser itself; Chrome, for instance, runs every plugin in a separate process, while other browsers only use one process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM