猿问

java执行时,错误:找不到或无法加载主类Hello

public class Hello{
        public static void main(String[]args){
            System.out.println("Hello,welcome to my home!");
}
}


天才躺在地上
浏览 2259回答 2
2回答

慕的地8582982

KNZOXPYPYSICRPVIOUXUHYXMQOLLOEKXUOILYYUGXDDMDZISOPAXENNFVFPDNXGNQQEDOLDGCTJMWJZSWGQOLFYOCHAIJNNBBUARXJDZJTTTJIEREWTTAMIMFHTQAHTSZFPVKATDBUAIVINOEWANWTMTMWYYHANYIEOROHGUYYBEXRKXHTWPMNNDGTGUQBFLMCIIIOSSLLXIOHQAZVHQHEXHCIBBVBDLBYKXRKHUNEOAUEUKPMJYVYBCIKTTWIXHKHTJCMMHQGZJFTQMOBOSHKNKDQTOIIEAHKXNUNZZMSYHREVQAGAJTKMGHABLVVJJFOZFZAKZJCKZZDABPCSMJQWPSDFQWGJPKJDLJFSJTZZKDWGXAUKARABBOIOYLIBBLMIOXNVEIWGJWVYOOOBLBEYLRTXJATOEHUPHRAHAEBXHBIENQNGTQTDWKMISVSHSOSBBXLEOUEKDRARDNUXNHHDGATPSVSVMZWPEXJPBOROYHBXONZMTGCJWPFGFFYVNHRHKRZLAFRBLHRBZWSOIRZSMMFLOOCVBZZWMNSAQSVXISVSCLTCEUQMPLVYIEZPSUFPFBXUZVLOEBWFPLOSHEUKTQLVFHWFRBYBOXNKXUQEVEHXNQMCQGVYORHVFVEFZBAYPGZQGJDYOFUYUKGQGLQGADMTAAUDOKYIDTXTJAWHWTDMPLHESISHQTWSVKUKGGVFOLOEADAPJEHVEBFORHXQXADTJADAQAUXAWTPSVEBKKAWTJZCRUXGYUWMJGCFIXAAISVVSPFAKNDFVSPLWYBYNJSORHKTJLPFOWZCLPLVRAQGWAWRUDTDFIWLBLIROYTDABBLIXHWNWMJHKMPZPSORHKRUPAQYADGJFJYBLBDORUDT

天才躺在地上

谢谢大家的回复。问题已经解决了。也没找出具体是哪里的问题,后来改了下分号和引号的全角或半角输入状态,再调试时竟然正常了。

1176837406

看一下你的文件名是不是Hello还有文件的后缀是不是java
随时随地看视频慕课网APP

相关分类

Java
我要回答