Access restriction: The Type 'Application' is Not API
When attempting to utilize the javax.swing.JFrame and com.apple.eawt.Application classes, an error can arise indicating "Access restriction: The type 'Application' is not API." This issue pertains to Eclipse's access restriction mechanism, preventing the use of non-public API classes.
Addressing the Issue
To resolve this error, modify the project's access restrictions:
By implementing these steps, you can effectively override Eclipse's access restrictions and allow the use of the Application class.
The above is the detailed content of How to Overcome \'Access restriction: The type \'Application\' is not API\' Error When Using javax.swing.JFrame and com.apple.eawt.Application?. For more information, please follow other related articles on the PHP Chinese website!