简单的main如何运行
package com.js;
public class testindex {
public void main(String[] args)
{
System.out.println("aa");
}
}
报
java.lang.NoClassDefFoundError: testindex
------解决方案--------------------package com.js;
public class testindex {
public
static void main(String[] args)
{
System.out.println("aa");
}
}