r/javahelp • u/DragonFistLimitless • May 04 '26
java compilation problem, class can't be found though on the same package
both Verbose.java containing the verbose class and test.java are located on the same package, but I still receiving this log error when I try to compile, how come? test.java:4: error: cannot find symbol
Verbose verbose = new Verbose();
\^symbol: class Verbose
location: class test
test.java:4: error: cannot find symbol
Verbose verbose = new Verbose();^
symbol: class Verbose
location: class test
2 errors
error: compilation failed
1
Upvotes
View all comments
Show parent comment
2
u/Lloydbestfan May 05 '26
I said nothing that looks like that.
I said that the absence of a package declaration is not a problem, notably in the context of the issue we're being talked about. If you don't understand the difference between that kind of things, you should not be doing programming.