![]() ![]() ![]() Is there any other reason why such a error should get flagged?ġ) 'Build' menu -> ' Rebuild Project'. tried importing java.lang made no difference.Also, did you create the source through IDEA, or did you create a new IDEA project over existing source? So libTest needs to be in a java file named libTest.java, otherwise the java compiler will complain. As mentioned by QuantumMechanic, your main class needs to be in a file named exactly like it.This happens automatically for classes in the lang package. 2 What's the name of the source file? Is it libTest.java?.Is there any change that i have to make in the compiler settings? Or is it the code. 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 import import import java.util.* class book 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 |