MDN’s new design is in Beta! A sneak peek:


Core Object

A top-level object used to access any Java class in the package sun.*.

Created by

The sun object is a top-level, predefined JavaScript object. You can automatically access it without using a constructor or calling a method.


The sun object is a convenience synonym for the property Packages.sun.

See also

Packages, Packages.sun

Document Tags and Contributors

 Contributors to this page: fscholz, Sevenspade, Mgjbot, Ptak82, Maian, Dria
 Last updated by: fscholz,