I am trying to run a java program that has 3 classes and an .aj file. I have my main named Main.class.
When I'm trying to run my program it says it could not find my main class, even though it's right there.
Eclipse is trying to run
prob1.Main
which doesnt exist. By looking at your class you commented
the package
name. Try recompiling your class again and run
it.
Don't comment out the:
package prob1;
The only time you don't need to write the package is when you are using the default package for a project (which is created automatically when you create a class in a new project). Edit the code snippet and then run the program again and it should be fine. Hope this helps.
SomeTimes eclipse get corrupted run configuration...... For that issue three solution is there
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.