Java Compatibility
I'm somewhat new to Java so I downloaded NetBeans and JDK 1.6. I wrote a small program and everything works fine on my system. But, it will not run on systems that have 1.5 or 1.4 installed, including Windows, Linux, or Mac.
It was my understanding that Java was cross-platform. So, to get a true cross-platform program to run on all systems, what compile options do you need to set. I believe that Mac only supports Java up to 1.5, maybe not even that high. So how do you get a program compiled on 1.6 to run on 1.5 or 1.4?
I set the target attribute to version 1.4 and set the classpath flag to my 1.4 sdk, but it was throwing a bunch of errors due to Swing. Is what I'm wanting to do even possible? Thank you.

