• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exercise Head first of Java public class TestBox  RSS feed

 
Frank Thuring
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to do an exercise but I got a compiler error:



I work with the command prompt under windows.
Can someone tell me why I got this message?

C:\Program Files\Java\java\bin>javac TestBox
error: Class names, 'TestBox', are only accepted if annotation processing is exp
licitly requested
1 error

By the way I was expecting an other message but my question is about the error message above.




 
Pramod P Deore
Ranch Hand
Posts: 633
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\Program Files\Java\java\bin>javac TestBox


To compile java program you must have to write command as
There you forgot to write.java extension.
 
Frank Thuring
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, it was the solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!