新手 为什么提示 Exception in thread "main" java.lang.NoClassDefFoundError:
import java.util.Random;
public class shuiji
{
public static void main(String[] args)
{
while(true)
{
Shuiji SJ=new Shuiji();
new Shuiji().start();
}
}
}
class Shuiji extends Thread
{
public void run()
{
int[] randoms = {0,1};
Random rnd = new Random();
int x = 0;
//int count = 0;
while(true)
{
x = rnd.nextInt(2);
//if(randoms[x] != -1)
//{
//return randoms[x];
System.out.print(randoms[x]);
//try{Thread.sleep(500);}catch(Exception e){e.getLocalizedMessage();}
//randoms[x] = -1;
//count++;
//}
}
}
}
这个程序 编译通过了 为什么运行的时候说Exception in thread "main" java.lang.NoClassDefFoundError:
我其他的程序都可以运行的啊 请教啊这是为什么啊???????