I want to run my project but IntelliJ IDEA version 13 shows some strange error message:
Now class file has some small cross at class icon.
But this code was compiled, I couldn't figure out this strange behavior.
How to solve this trouble?
I believe the class is excluded from compilation - I think I've had this before.
Try: Settings
-> Compiler
-> Excludes
Please try to rename the file name with suffix ".java" eventhough it is within the same package, if you insert this file as a java source file. Intellij is not intelligent in this aspect, it will not recognize it in the package without a suffix, and it is really stupid :-)
It is difficult to say without more details. Both classes, you project configuration, tools you are using, etc....
But definitely your class JDBCDAOFactory don't see your TeamDAO class.
What I will do: - check modifiers - visibility (should be ok while you have as it looks that you have both in same package)
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.