java.lang.NoSuchMethodError: main

What should i do, when this replies as my output

Here is my code:

This is the bicycle class

package bicycle;

class Bicycle {

int cadence=0;

int speed=0;

int gear=1;

void changeCadence(int newValue){

cadence= newValue;

}

void changeGear(int newValue){

gear= newValue;

}

void speedUp(int increment){

speed = speed+ increment;

}

void applyBrakes(int decrement){

speed = speed - decrement;

}

void printStates(){

System.out.println("cadence:"+ cadence+" speed:"+speed+" gear:"+gear);

}

}

this is the bicycle demo class

package bicycle;

class BicycleDemo {

public static void main(String[] args) {

Bicycle bike1= new Bicycle();

Bicycle bike2= new Bicycle();

bike1.changeCadence(50);

bike1.speedUp(10);

bike1.changeGear(2);

bike1.printStates();

bike2.changeCadence(50);

bike2.speedUp(10);

bike2.changeGear(2);

bike2.changeCadence(40);

bike2.speedUp(10);

bike2.changeGear(3);

bike2.printStates();

}

}

Plz Help.

[1177 byte] By [Daleusa] at [2007-10-3 10:15:30]
# 1
Never mind. Problem resolvedSolution was:Run "BicycleDemo.java"using untiltle runtime Configuration"
Daleusa at 2007-7-15 5:36:10 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
when you run your program using java, JVM searches for the main method, if there is no main method then this errror message is thrown.
AmitavaDeya at 2007-7-15 5:36:10 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...