簡體   English   中英

Gradle-bootstrap類路徑未與-source 1.7一起設置

[英]Gradle,- bootstrap class path not set in conjunction with -source 1.7

使用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:annotation-driven”的聲明。 在app-config-test-virtual.xml cvc-complex-type.2.4.c:匹配的通配符是嚴格的,但是找不到元素“ ehcache:annotation-driven”的聲明。 在app-config.xml cvc-complex-type.2.4.c:匹配的通配符是嚴格的,但是找不到元素“ ehcache:annotation-driven”的聲明。 在app-config-test-dao.xml

我如何擺脫這個問題Gradle,- bootstrap class path not set in conjunction with -source 1.7

我遵循了本主題來設置Java 1.7的編譯,但是問題仍然存在。

將Eclipse的Java編譯器更改為jdk7

在build.gradle中,嘗試設置:

sourceCompatibility = 1.7
targetCompatibility = 1.7

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM