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.
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.
Thank you.
ReplyDeleteI 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.
ReplyDeleteScratching my head over this one.
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
ReplyDelete1 warning , what should I do ? Please Help