
I am trying to run some java files in a new PRoject.So I make the project,put the files in it and I try to RUN the main file so my error problems happened!!!
Thanks for the stack overflow.
the Answer: Right click on the folder where you put your main class then click onBuild Path--> Use as Source Folder.
It worked!!!
OR-->
right click on the package->properties->Java Build Path->Add folder(select the folder your code reside in)
Do work either!!!
好累?。。?!
錯(cuò)誤:找不到或無(wú)法加載主類。
解決辦法:右鍵工程文件夾-->Build Path-->Use as Source Folder 就解決了。
完美運(yùn)行!
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注