HTTP Status 404 - /strutsTest/WebRoot/Login.do
type Status report
message /strutsTest/WebRoot/Login.do
description The requested resource (/strutsTest/WebRoot/Login.do) is not available.
Apache Tomcat/6.0.10
*********************************************************************************************
自己在網上搜到了一些相關的方法,但是似乎沒用:
[Error!]the type java.lang.object cannot be resolved. it is indirectly reference
文章分類:Java編程
Error!]the type java.lang.object cannot be resolved. it is indirectly referenced from required .class files
找了半天,才發現,原來是jdk的問題,原來是沒有導入jdk的包。
也有可能是這個原因:電腦上有多個jdk的版本,這樣MyEclipse導入的時候就會出現問題,一般情況下,使用MyEclipse自己帶的Jdk版本,我裝的是jdk 1.6.013 ,即使重新導入這個也不管用,後面只好用Myeclipse自己帶的1.6.0013的版本就好了。
操作步驟:project->properties->Java Bulid Path 將原有的jdk刪除
然後Java Build Path -----> Libraries---->Add Libraries----->JRE System Library 選擇MyEclipse自帶的jdk或是選擇自己適合的包即可。
It is indirectly referenced from required .class file 問題解決
關鍵字: eclipse原因:你正要使用的類調用了另一個類,而這個類又調用了其他類,這種關係可能會有好多層。而在這個調用的過程中,某個類所在的包的缺失就會造成以上那個錯誤。
解決方法:導入缺失的包
**********************************************************************************************
Servlet問題:servlet cannot be resolved to a type解決辦法