分析bootstrap class path not set in conjunction with -source 1.6
来源:互联网 发布:编程验证歌德巴赫猜想 编辑:程序博客网 时间:2024/06/05 17:06
新的javac警告,用于设置没有bootclasspath的旧源
2010年12月21日达西 - 甲骨文
要从javac
JDK N用于交叉编译器到较旧的平台版本,正确的做法是:
- 使用较旧的
-source
设置。 - 设置
bootclasspath
为针对rt.jar
较旧平台的(或等效的)编译。
如果不采取第二步,javac
将尽职使用旧语言规则与新库结合,这可能导致类文件不能在旧平台上工作,因为可以包括对不存在的方法的引用。
感谢Jon Gibbons的工作,在JDK 7 build 121和以后javac
检测和警告这种可疑情况; 例如:
$ javac -source 6 HelloWorld.java 警告:[options] bootstrap类路径未与-source 1.6一起设置
解决警告的一种方法是设置bootclasspath
。如果这是不适当的,警告可以禁用在-Xlint
家庭内的新子选项-Xlint:-options
。
有了这种变化,可能javac
会导致微妙构建错误的可能有问题的选项组合被编译器诊断,并且可以通过直接寻址或通过新的-Xlint
子选项被记录为构建过程的一部分。
0 0
- bootstrap class path not set in conjunction with -source 1.6
- 分析bootstrap class path not set in conjunction with -source 1.6
- build.gradle warning: spring boot gradle bootstrap class path not set ...
- [CakePHP]How to use Session in conjunction with Memcache
- view class source code with JAD plugin in Eclipse
- How to resolve the error:Event ID 1030 occur in conjunction with Event id 1058
- Adding OpenID to your web site in conjunction with ASP.NET Membership
- Cannot run code from this file in conjunction with non encoded files
- Usage of emulators in conjunction with ROMs you don't own is forbidden by copyright law.
- how to use the mathmatical constant "e" in conjunction with a vector
- #466 – 将GridSplitter和SharedSizeGroup联合使用(Using a GridSplitter in Conjunction with a SharedSizeGroup)
- AIR A file found in a source-path can not have more than one externally visiable
- Eclipse: Error (Bytecode Outline) SOURCE FILE [in PROJECT] is not on its project's build path
- set including path in mex
- Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml]:
- Error registering bean with name 'dataSource' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationC
- ssh框架搭建Error creating bean with name 'sessionFactory' defined in class path
- 加密策略
- BZOJ 1933 [Shoi2007] Bookcase 书柜的尺寸
- linux上修改ssh密码和mysql密码
- 医疗卫生服务体系
- IdGenerator并发编程
- 分析bootstrap class path not set in conjunction with -source 1.6
- 公众号快速准确的添加粉丝,吸粉最佳方法。
- mvc学习笔记插件式程序设计
- UTC和时区
- 解决java未赋值变量的默认值问题
- 卷积神经网络(CNN)前向传播算法
- PAT A1125. Chain the Ropes (25)(哈夫曼树)
- iOS微信安装包瘦身
- 常用框架(三):spring+springMvc+mybatis+maven+shiro+freemarker