.java file not found

0

This is my first time, I made a simple println .

My code was exactly:

class teste {
    public static void main(String[] args) {
        System.out.println("oi");
    }
}

No error appears, but when I go to the terminal and type javac teste.java ...!

    
asked by anonymous 16.04.2015 / 19:30

1 answer

3

You are running the command javac from the wrong folder. First navigate to the correct folder, which is the folder where your .java is. And then run javac .

To navigate between folders on the Linux terminal, use the command cd .

Also, remember that class names should start with uppercase.

    
16.04.2015 / 19:37