View Single Post
  #5 (permalink)  
Old 01-31-2008, 08:10 AM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,266
hardwired is on a distinguished road
exception in thread main java.lang.nosuchmethoderror
Means that the jvm could not find a main method in the class.
Code:
public class ClockRx { ... everything same as before ... /** add a main method */ public static void main(String[] args) { ClockRc clock = new ClockRx(); // now you can access fields and call // methods in the ClockRx class. } }
Reply With Quote