|
|
Problem
When attempting to compile I get the following error:
javac myfirstjavaprog
error: Class names, 'myfirstjavaprog', are only accepted if annotation processing is explicitly requested
1 error
Solution
You forgot the .java extension on the filename, please type:
javac myfirstjavaprog.java
Source: https://foxhop.net/f339aafe-2f95-11f1-a33a-e86a64d24d78/common-java-errors
Snapshot: 2026-05-25T01:34:36Z
Generator: Remarkbox 1527ef7