Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Cruise requires Java 1.6. How can I build projects that run on older versions of Java (e.g 1.5)?

0
Posted

Cruise requires Java 1.6. How can I build projects that run on older versions of Java (e.g 1.5)?

0

You can build java 1.5 projects with Java 1.6. In fact this is the recommended way to do it. Most IDEs already do this. The way to do it is to set the source and target properties on your ant javac task (see : http://ant.apache.org/manual/CoreTasks/javac.html ) Copied from there: source — Value of the -source command-line switch; will be ignored by all implementations prior to javac1.4 (or modern when Ant is not running in a 1.3 VM) and jikes. If you use this attribute together with jikes, you must make sure that your version of jikes supports the -source switch. By default, no -source argument will be used at all. Note that the default value depends on the JVM that is running Ant. We highly recommend to always specify this attribute. A default value for this attribute can be provided using the magic ant.build.javac.source property. target — Generate class files for specific VM version (e.g., 1.1 or 1.2). Note that the default value depends on the JVM that is running Ant. In particul

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123