Click to See Complete Forum and Search --> : Compatibility with earlier JRE


agent_x91
03-18-2007, 04:47 PM
Does anyone know how to tell the compiler to compile an application using an older version of the JDK? Some of my programs aren't working on other people's computers because they do not have an up-to-date version of the JRE - a runtime exception is thrown and the program doesn't work.

Is there a flag you can give the compiler to tell it to compile the program to the specifications of an earlier version of java?

agent_x91
03-18-2007, 04:52 PM
Don't worry, I just found the answer. If anyone else is interested, you use the -target [version] flag.