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...
Type: Posts; User: FJIW
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...
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...
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.
...
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...
Hello Every 1;
I am trying to compile the following simple code and receiving the error:
Class Lamp{
//define behaviour
int brightness = 0;