I'm building a regular Java Application in Netbeans.
Suppose I want to compile the Main class like this "javac -target 1.1 Main.java" and other classes with the latest JDK version. How do I do this? Can I edit the build.xml file to make this happen?
I would like to do this so that the application can be started using any Java version and I can then notify the user that they have to update their Java if they are not using the latest JRE.
Reformulation of the problem: What I want is that Netbeans compiles Main.java with target 1.1 and the rest of the project files with the latest JDK into a single jar when I hit the build button.