Eclipse導入並打開java項目,在“package ***;”左側提示 Multiple markers at this line,或者在“import java.util.*”左側提示The import java.util cannot be resolved。
原因:這是由於你的項目buildpath不對。
解決方案:右鍵項目-------buildpath--------最下面那個configuration 的選擇libraries找到JRE(這個時候你會發現這個jre前面有!或者是紅X)選中remove掉重新為該項目選擇一個JRE。然后再選中項目,project----clean。最后,再重新編譯執行。