gpt4 book ai didi

java - 警告 : [options] bootstrap class path not set in conjunction with -source 1. 5

转载 作者:太空宇宙 更新时间:2023-11-04 11:28:40 25 4
gpt4 key购买 nike

我在构建时收到警告消息!

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

如何修复它?

最佳答案

来自blog post :

To use javac from JDK N to cross-compiler to an older platform version, the correct practice is to:

  • Use the older -source setting.
  • Set the bootclasspath to compile against the rt.jar (or equivalent) for the older platform.

If the second step is not taken, javac will dutifully use the old language rules combined with new libraries, which can result in class files that do not work on the older platform since references to non-existent methods can get included.

关于java - 警告 : [options] bootstrap class path not set in conjunction with -source 1. 5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44064062/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com