View page on GitHub

Packages Field

There used to be a ‘Packages’ field on an applet instance that could be used to access static fields and methods and also be used to create new objects. Here is the official documentation of this feature

However this field has been removed in recent versions of Java. It seems it was removed in 1.7.0_21 based on the release notes (search for Packages).

Here is a mozilla bug report about removing the java, netscape, and Packages global variables from Firefox. However that should be independent from the Packages variable on the applet instance itself. Here is a unanswered oracle forum dicussion about it

Run the test

Source code: