Will not recognize class outside of package.

Answered

When a class has been moved into a package it will not recognize any other classes.

Trying to create a class that inherits from a abstract class but when moved into a package it cant access any other classes.

I have checked auto import when creating a new project but the problem still exists.

Also when starting a new project a java module is not being created automatically 

Problems occured after an update.

 

0
4 comments

Please share a sample project to reproduce and idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085).

0
Avatar
Permanently deleted user

Its just started doing this I have completed projects before without this issue, I have not changed any of my settings but did update intellij and this has been a problem since.

So the child class won't recognize the parent class if its in a package how do I fix that ?

0

Java doesn't support importing classes that reside in the default package, this is language limitation, not IntelliJ IDEA:

https://stackoverflow.com/questions/283816/how-to-access-java-classes-in-the-default-package

0
Avatar
Permanently deleted user

Thank you for your help.

 

0

Please sign in to leave a comment.