廣告

顯示具有 eclipse 標籤的文章。 顯示所有文章
顯示具有 eclipse 標籤的文章。 顯示所有文章

2015年6月5日 星期五

tomcat-embed-el-8.0.15.jar - jar not lo aded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression .class



IF you use eclipse & gradle & spring-boot to run app
and you get error like me

error-msg:
tomcat-embed-el-8.0.15.jar - jar not lo aded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression .class

i provide 3 method to solve,
the best way is method B

A:
remove relate jar in below path
F:\workspacegit\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\abMartWS\WEB-INF\lib

B:(in eclipse)
  1.import project
  2. gradle refresh all
  3. remove gradle depency lib
  4. gradle refresh all


C: don't use eclispe 

2015年4月23日 星期四

export jar檔時出現 "eclipse class file on classpath not found or not accessible"

因為專案裡面有mark掉某java檔的整個
內容(包含class name),
因為程式碼全部被mark.
這樣bin下面會產不出class檔而導致錯誤,
 所以不能將class name給mark掉.    


結論:
這不知道是eclipse本身的bug又或者是java本來就這樣規定?

2015年3月26日 星期四

[eclipse] Access restriction on class due to restriction on required library rt.jar


  . 問題 : [eclipse]換workspace時發生
            =>Access restriction on class due to 
              restriction on required library rt.jar 
  
  . 解法 : 方法1
            1. Go to the Build Path settings in the project properties. 
            2 Remove the JRE System Library 
            3 Add it back; Select "Add Library" and select the JRE System Library. 

           方法2 
            window - > java -> compiler -> error/warning -> deprecated and restricted api 把 forbidden reference 將 error change to warning