naiimco
naiimco

Reputation: 75

Setting java bootclasspath

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!

Upvotes: 3

Views: 5306

Answers (1)

Oleg Gryb
Oleg Gryb

Reputation: 5259

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 ...

Upvotes: 1

Related Questions