I have code that relies on the NTSystem class (com.sun.security.auth.module.NTSystem) which is found in rt.jar for Windows JREs. But when I am compile my class on a Linux machine, it fails, because that class is not supplied with the Linux JDK/JRE.
Now, when RUNNING the code, it makes sense that I would be unable to use the NTSystem class and it's functions. But my code is smart enough to determine what OS it's running on, and to use the appropriate classes.
Conversely, developing in Windows, I don't have access to com.sun.security.auth.module.UnixSystem. Am I forced to use reflection to load and use these classes because of a compile time limitation? Or is there a special rt.jar that has all the classes in it for building purposes?
Thanks in advance.