Java Ant compile issue

While running ant build, I received this warning.

warning: [options] bootstrap class path not set in conjunction with -source 1.7

Eclipse Error
Java Logo

Having installed multiple JDKs on my system, I realized that was the major cause of issue. I am compiling in Java 7 while JAVA_HOME is 8.

Solution

Just change the JAVA_HOME via “System environment” or use cmd line in Command Prompt (with Administrator Privilege) and set JAVA_HOME = <jdk path>

Leave a Reply