Sunday, April 6, 2014

Java7 bootclasspath

For those new to Android Application Development, When you use Java 7 or higher compilers you should be setting a bootclasspath pointing to your rt.jar file in the target jdk for both your javac and javadoc tasks.

The reasoning is that way the compiler and the doclet use the right java version for the language rules when compiling. And your compiler and probably your javadoc doclet will give warnings if you do not set it.

Best practice wise you would put it under something the opt/oldjdks subfolder as far as installing the old jdks.