Import doesn't work in command line

I have a slow netbook so i installed lubuntu then geany on it to make it a little useful. C++ seems to work flawless however with java i couldn’t get it to work. Searching online didn’t return anything.

Here is the code:

import java.io.*;

class asdf{
    public static void main(String args[]) throws java.io.IOException {
        System.out.println("Nothing");
    }
}

Here is the error:

root@*****:/home/***/Documents# javac asdf.java
asdf.java:4: error: cannot find symbol
throws java.io.IOException {
    symbol:   class io
    location: class java
    ./java.java:5: error: cannot find symbol
    throws java.io.IOException {
        symbol:   class io
        location: class java
    2 errors

Now, i know you guys don’t like clueless newcomers but i got this error while i was trying to learn java from a book, namely “Java : A Beginner’s Guide”.

I have almost no idea since i’m a beginner still i have a feeling this has something to do with path and building. Since IDEs always handled that for me i never bothered with such stuff. Or i may have damaged my packages somehow considering “import java.io.*;” returns no error.

javac -version
javac 1.8.0_131

The way i installed oracle java is here.

Any help is appreciated, thanks in advance.

Try to install openjdk on your lubuntu.
First delete Oracle jdk.
Type sudo apt install openjdk-8-jdk in your terminal.

And another thing. Name of a class should start from capital letter.

I’m so silly, the folder i tried to compile the command “import java.io.*”, included a file named java.java so the compiler tried to import it from this file. Thanks to all those who tried to help. I uninstalled android studio and oracle java for no reason (facepalm here).