0
zeeshan@zeeshan-desktop:~$ cd Desktop
zeeshan@zeeshan-desktop:~/Desktop$ ls
0x0409.ini  helloworld.c   setup.exe          why.java   WinRoot
hello       helloworld.c~  Turbo C++ 3.2.msi  why.java~
zeeshan@zeeshan-desktop:~/Desktop$ javac why
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
error: Class names, 'why', are only accepted if annotation processing is explicitly requested
1 error
zeeshan@zeeshan-desktop:~/Desktop$ 

what should i do??

Jacob Vlijm
  • 83,767

1 Answers1

0

This is a problem in your command

javac why

instead use

javac why.java

You can also see this problem is already solved in this community For more details visit this link: - How to compile a .java file on Ubuntu?