This might be a simple problem, but Google didnβt return anything.
I read Help with packages in java - import does not work
I still don't understand why direct imports will work, but there won't be a wildcard. [EDIT] By class package, I mean class package. I'm still new to Java, so I donβt know the semantics of [EDIT]
I have a class package: com.company.functions when I try to import com.company.* get the following error.
java: package com.company does not exist
If I import com.company.function explicitly, I have no problem.
So, I suppose I have a solution, but for the sake of training, can someone explain why I see this problem?
IDE: IntelliJ IDEA 12
import com.sociapathy.*; <--Throws compile error java: package com.sociapathy does not exist import com.sociapathy.databaseAccess.MySQL; <--Works just fine
source share