Error: Could not find or load main class in intelliJ IDE
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a beginner in Java and am trying to run my code using IntelliJ that I just installed as my IDE with JDK 1.7. The following piece of code keeps does not even compile and keeps giving me the error: Error: Could not find or load main class libTest Code import java.lang.Integer; import java.lang.String; import java.lang.System; import java.util.*; class book { private String name = "trial"; private int bookCode=1; private int issued=0; public void Issue(){ if(issued==0) { issued=1; System.out.println("You have succesfully issued the book");