1. Joined
    06 Mar '12
    Moves
    642
    27 Jan '18 13:523 edits
    I have just installed JCreator on my new computer for making java programs but it doesn't work and I don't know why and I want to know if anyone knows of a suitable forum weblink I can ask for help. I googled searched for such a weblink but got nowhere.

    In case there is a java expert that can help me here;
    the problem is that my program is;


    public class Humy_programs {

    public static void main(String[] args) {

    // TODO, add your application code
    System.out.println("Hello World!" );
    }
    }




    But when I try and compile that I get the following error displayed in the Build Output panal;



    --------------------Configuration: Humy_programs - JDK version -9.0.4 <Default> - <Default>--------------------
    javac: invalid flag: C:\Users\Laptop\Documents\JCreator LE\MyProjects\Humy_programs\src\Humy_programs.java
    Usage: javac <options> <source files>
    use --help for a list of possible options

    Process completed.



    I have windows 10 and I have downloaded JDK like I should.
    Any ideas?
  2. Joined
    06 Mar '12
    Moves
    642
    27 Jan '18 14:141 edit
    I just tried complying a slightly different program of;

    public class humy {

    public static void main(String[] args) {

    // TODO, add your application code
    System.out.println("Hello World!" );
    }
    }

    But, strangly, get a totally different compiler error message in the Builder Output panel of;


    --------------------Configuration: humy - JDK version -9.0.4 <Default> - <Default>--------------------
    Error: Could not find or load main class humy
    Caused by: java.lang.ClassNotFoundException: humy

    Process completed.


    -that is got to be a big clue to what is wrong! WHY is there no class 'found'!?

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.I Agree