Hello
I'm trying to create a cross platform application to control a robot. Everything went relatively easy but I got stuck when trying to set a few properties that are Mac specific. They use the 'com.apple.eawt' package which obviously isn't available on Linux or Windows. I need to set the program to use the system menu bar and the dock icon and some handlers. I know how to do this but I don't know how to tell Linux to skip the part that is Mac specific.
I can check the operating system at runtime but the code won't compile on Linux because of that missing package.
When I add some Linux specific stuff (I develop on a Mac) the code won't compile on my Mac anymore.
I'm relatively new to Java but I know lots of other languages like C, C++, Ruby, Scheme,... I know how to do this in C/C++ but that won't work here.
Thanks!
Jasper