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

时间:2017-04-25 11:58:21

标签: 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下运行。

  

模块' edb-core'中发现的错误。发布被取消了。看到   "问题"查看详细信息。 cvc-complex-type.2.4.c:匹配   通配符是严格的,但是找不到元素的声明   ' ehcache的:注解驱动&#39 ;.在app-config-test-virtual.xml   cvc-complex-type.2.4.c:匹配的通配符是严格的,但没有   声明可以在元素' ehcache:annotation-driven'中找到。在   app-config.xml cvc-complex-type.2.4.c:匹配的通配符是   严格,但没有声明元素的声明   ' ehcache的:注解驱动&#39 ;.在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

1 个答案:

答案 0 :(得分:0)

在build.gradle中,尝试设置:

sourceCompatibility = 1.7
targetCompatibility = 1.7