3

I have JDK6 & 8 installed on my computer, I would like to do

    javac -source 1.6 

However I have this warning

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

Does anyone know how to set it? I am not using any IDE and I'm on windows7. Thanks!

naiimco
  • 75
  • 1
  • 11

1 Answers1

1

You can use -Xbootclasspath and provide all jar files there from your JDK6's jre/lib directory, but a better way of doing it would be to call javac from your JDK6 installation:

<path-to-jdk6>/bin/javac ...
Oleg Gryb
  • 5,122
  • 1
  • 28
  • 40