Tuesday, 29 September 2015

ant compile issue : warning: [options] bootstrap class path not set in conjunction with 1.6

During the ant build I was facing this issue.

It caused because I had two JDK in my system, 1.6 and 1.7.

I used 1.6 in eclipse as JRE during coding but I was using cmd line for ant build.

In the command line java -version displaying JAVA_HOME as 1.7.

Solution:
Just change the JAVA_HOME via "System environment" in window or equivalent in other OS.

Open New cmd promt.

3 comments:

  1. I also had two JDK's, 1.8 and 13. I deleted 13, made sure path and JAVA_HOME pointed pointed at 1.8, fully rebooted, but still get the issue from .\gradlew setupDecompWorkspace in the powershell.
    Scratching my head over this one.

    ReplyDelete
  2. I have a JDK 9.0.4 and I am getting a warning warning: [options] bootstrap class path not set in conjunction with -source 1.8
    1 warning , what should I do ? Please Help

    ReplyDelete