r/javahelp • • Aug 02 '25

Import Class not showing

I ran into a problem that for some things I cant import the class for some reason, how do I fix this?

I am trying to import ''ModItems'' if that helps

I cant send an Image and Its not a line of code I am trying to show, so sorry for that.

I am a beginner to java so any help appreciated!

1 Upvotes

13 comments sorted by

View all comments

Show parent comment

3

u/milchshakee Aug 02 '25

If it can't find it, then the dependency that provides the class is not in the classpath/module path. You need to share your project code for others to help you though. Usually the dependency is not added correctly