Problem with javac compiler


#1

Hi,
I don’t know what i am doing wrong, but when i am trying to compile a file, i.e. javac Plus.java, it doesn’t compile the file. Please see the attachment. It complains that the file is not found. Please help.

Thanks!


#2

In this case, the solution is pretty simple. Unlike Windows, where the default is to not show file extensions, Cloud9 does show file extensions. What I can tell from the file tree is that the file you think is Plus.java is actually just Plus, with no extension. To fix this, just right click on the file, click rename, and add .java to the end. Then try compiling it again. This will also enable Java syntax highlighting for your file, as an added bonus.


#3

Great! thanks for your help.