[Solved] Finding Main Class in “Hello World” program in Java [duplicate] October 1, 2022 by Kirat [ad_1]From what little information you’ve given, I’d say you’re executing it the wrong way.Make sure you run the following two commands:javac HelloPrinter.java java HelloPrinter The first command compiles your source code into a .class file. The second command executes that class file. 2[ad_2]solved Finding Main Class in “Hello World” program in Java [duplicate]