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

标签 java eclipse gradle weblogic12c

使用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/

相关文章:

java - Java 中动态命名类实例

java - JCDK 3.0.5u1中找不到eclipse-plugin文件夹?

java - 在 Eclipse 中设置 Android 开发工具

java - 为微服务设置 Artifactory

gradle - 无法删除文件:C:\Users\…\corda-settler-manual\cordapp-contracts-states\build\libs\cordapp-contracts-states-0.1.jar

java - 添加到集合时 PreUpdate 未触发

java - 从 JSP 文件更新 HTML

java - 无法替换/导航 fragment

java - 使用 Gradle OSGI 插件扫描蓝图 XML 文件

java - 突出显示 TextView 中的文本行,包括所有宽度