Search:

Type: Posts; User: FJIW

Search: Search took 0.12 seconds.

  1. Replies
    10
    Views
    9,748

    [SOLVED] Re: Error: Class,interface or enum expected

    Ok here what I did,
    Renamed the program to Lamp. Now the program name and the class name is same.
    Removed the calltomethod class as it was not required. Compiled the c

    And it works now.

    I...
  2. Replies
    10
    Views
    9,748

    [SOLVED] Re: Error: Class,interface or enum expected

    Hi Sean4u,

    I compiled the filename PrgLamp.java and it compiled without errors. When I try to run the code using following command java PrgLamp

    it throws below error:Could not find or load main...
  3. Replies
    10
    Views
    9,748

    [SOLVED] Re: Error: Class,interface or enum expected

    Ok please pardon my lack of knowledge here. I tried the instructions but seems like I am doing something wrong. I m still receiving the same error could not find or load the main class PrgLamp.


    ...
  4. Replies
    10
    Views
    9,748

    [SOLVED] Re: Error: Class,interface or enum expected

    Thank you Sean4u,

    I somehow managed to get rid off these errors.... but I cannot understand the below error where it says couldnot load the main class (class name.java). I also got the same error...
  5. Replies
    10
    Views
    9,748

    [SOLVED] Error: Class,interface or enum expected

    Hello Every 1;

    I am trying to compile the following simple code and receiving the error:

    Class Lamp{

    //define behaviour

    int brightness = 0;
Results 1 to 5 of 5