I use the following import in my code:
import sun.awt.windows.WComponentPeer;
On Windows this class is located in rt.jar
so I can build the whole app. On Mac there is no such class so I can't.
How to change the project to support cross-platform building? I use Gradle, maybe a dependency is needed?