One situation that can cause this to happen is if you're using modules and you manually delete the module out directory. The point I'm particularly wanting to share is that some times, the code is not compiled (built), even though your run configuration specifies "Build" in the "Before launch" section of the configuration panel. If the compiled code is not in the location expected, you'll get the error. That's because, when you're trying to run the program, it compiles the code first, and puts the compiled result to the out location, and then it tries to load the compiled code from the out location. ![]() As pointed out, the error message is basically a result of the out folder. I know this was asked a while ago, but I was just stumbling over this issue and thought my findings might help others. Is there any change that i have to make in the compiler settings? Or is it the code. Please contact the librarian for further details") ("You have succesfully issued the book") ![]() 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 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |