gpt4 book ai didi

java - Gradle-bootstrap类路径未与-source 1.7一起设置

转载 作者:行者123 更新时间:2023-12-03 05:58:05 27 4
gpt4 key购买 nike

使用Gradle构建程序编译应用程序时观察到的一件事是,

:edb-core:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
C:\java_dev\projects\workspace\FY18R3_edb\edb-core\dao\dell\services\dfsl\dao\LDAPEmployeeDao.java:16: warning: LdapCtxFactory is internal proprietary API and may be removed in a future release
import com.sun.jndi.ldap.LdapCtxFactory;
^
C:\java_dev\projects\workspace\FY18R3_edb\edb-core\dao\dell\services\dfsl\dao\LDAPEmployeeDao.java:74: warning: LdapCtxFactory is internal proprietary API and may be removed in a future release
env.put(Context.INITIAL_CONTEXT_FACTORY, LdapCtxFactory.class.getName());
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 warnings

此错误是否具有任何意义,因为我无法使我的Weblogic AS在eclipse ide下运行。

Error(s) found in module 'edb-core'. Publish was cancelled. See "Problems" view for details. cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'ehcache:annotation-driven'. at app-config-test-virtual.xml cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'ehcache:annotation-driven'. at app-config.xml cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'ehcache:annotation-driven'. at app-config-test-dao.xml



我如何摆脱这个问题 Gradle,- bootstrap class path not set in conjunction with -source 1.7
我遵循了本主题来设置Java 1.7的编译,但是问题仍然存在。

changing eclipse's java compiler to jdk7

最佳答案

在build.gradle中,尝试设置:

sourceCompatibility = 1.7
targetCompatibility = 1.7

关于java - Gradle-bootstrap类路径未与-source 1.7一起设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43610047/

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