2017-04-25 29 views
0

一件事設置我已經觀察到同時使用搖籃版本是編譯我的應用程序,搖籃, - 引導類路徑不可與-source 1.7

: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'沒有發現聲明。在應用程序 - 配置 - 測試 - dao.xml

我怎麼能拿纏身出這個問題Gradle,- bootstrap class path not set in conjunction with -source 1.7

的我會遵循這個主題來設置編譯與Java 1.7,但問題仍然存在。

changing eclipse's java compiler to jdk7

+0

我會跟着這個主題這給了爲搖籃JDK 1.7路徑調整的必要救贖,http://stackoverflow.com/questions/16679593/gradle-compilejava-task-warning-options-bootstrap-class-path-not-set-in-conju,我們只需要在'Gradle Eclipse Preference'中適當的JDK路徑。 –

+0

關於'LdapCtxFactory'的問題。依靠,我需要儘快解決,但這是不同的,需要得救。 –

回答

0

在的build.gradle,嘗試設置:

sourceCompatibility = 1.7 
targetCompatibility = 1.7