public class Test implements Runnable {
public void run() {
for (int i=1; i<=10; i++){
System.out.println("Test:"+i);
}
}
}
class Test2 {
public static void main (String args[]){
Test te = new Test();
Thread t = new Thread(te);
t.start();
}
}
C:\>java Greebo
Exception in thread "main" java.lang.NoSuchMethodError: main
don't know what is wrong, pls advise thanks.
Franco
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com