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:


class asdf{
    public static void main(String args[]) throws {

Here is the error:

root@*****:/home/***/Documents# javac error: cannot find symbol
throws {
    symbol:   class io
    location: class java
    ./ error: cannot find symbol
    throws {
        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*;” 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*”, included a file named 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).