scala 遇到過的問題


1:在我安裝完scala的插件后,在打開方法的實現類(open implementactions)的時候,拋出這個異常,后來發現這個異常是因為我的scala的插件跟我eclipse版本不兼容導致的。

An error occurred while searching for implementations of method 'getFinishOrdCustByOrderCode'. See error log for details.
org.eclipse.jdt.internal.core.hierarchy.HierarchyType.<init>(Lorg/eclipse/jdt/core/IType;[CI[C[[C)V

 

解決辦法:
我的eclipse版本是
 
version:Mars.2 release (4,5,2)
新下載的scala版本是
4.0.0 release for scala 2.11.6
再次安裝沒有上面問題可以解決
 
 
 
2:在寫完scala代碼的后,出現異常錯誤(缺少依賴的jar)
 
 
missing or invalid dependency detected while loading class file
'RDDOperationScope.class'. Could not access term annotation in value com.jackson, because
it (or its dependencies) are missing. Check your build definition for missing or conflicting
dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
A full rebuild may help if 'RDDOperationScope.class' was compiled against an incompatible
version of com.jackson.    scala_1    Unknown    Scala Problem

 

missing or invalid dependency detected while loading class file 'RDDOperationScope.class'.
Could not access term JsonInclude in value com.annotation, because it (or its
are missing. Check your build definition for missing or conflicting dependencies.
(Re-run with `-Ylog-classpath` to see the problematic classpath.) A full rebuild may help if
'RDDOperationScope.class' was compiled against an incompatible version of com.annotation.
scala_1    Unknown    Scala Problem

 

missing or invalid dependency detected while loading class file
'RDDOperationScope.class'. Could not access term jackson in value com.fasterxml,
because it (or its dependencies) are missing. Check your build definition for missing or
conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
A full rebuild may help if 'RDDOperationScope.class' was compiled against an incompatible
version of com.fasterxml.    scala_1    Unknown    Scala Problem

 

missing or invalid dependency detected while loading class file 'RDDOperationScope.class'.
Could not access term annotation in value com.jackson, because it
(or its dependencies) are missing. Check your build definition for missing or conflicting dependencies.
(Re-run with `-Ylog-classpath` to see the problematic classpath.)
A full rebuild may help if 'RDDOperationScope.class'
was compiled against an incompatible version of com.jackson.    scala_1
Unknown    Scala Problem ////////////////////////////////缺少jackson包

 

missing or invalid dependency detected while loading class file 'RDD.class'.
Could not access term io in package org.apache.hadoop, because it (or its dependencies)
are missing. Check your build definition for missing or conflicting dependencies.
(Re-run with `-Ylog-classpath` to see the problematic classpath.) A full rebuild may help if
'RDD.class' was compiled against an incompatible version of org.apache.hadoop.    scala_1
Unknown    Scala Problem //////////////////////////////缺少hadoop
 
                

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM