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.

No comments:

Post a Comment

Hi,thank you for participating in the discussion by adding your comments.If this was bugged by the NSA you should have seen a little pop asking to relog back into your account.