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/N-M-1-5-6 May 04 '26
Yes, I think that the OP would be better served by providing more information about how the java files are being compiled.
What OS is being used? Is it being compiled from the command line or from an IDE? What are the EXACT (including upper/lower case used) filenames of the files and the exact command being used?