当前位置: 技术问答>java相关
出现这样的运行错误:java.lang.NoClassDefFoundError: JDemo
来源: 互联网 发布时间:2017-04-30
本文导语: 文件名:JDemo.java 文件内容: import java.lang.*; public class JDemo extends Object { private static int InstanceCount = 0; private boolean isStudent; private String name; private int[] number; public JDemo() { //初始化对...
文件名:JDemo.java
文件内容:
import java.lang.*;
public class JDemo extends Object
{
private static int InstanceCount = 0;
private boolean isStudent;
private String name;
private int[] number;
public JDemo()
{
//初始化对象
System.out.println("Construct instance "+JDemo.InstanceCount+" of class JDemo...");
this.InstanceCount++;
number = new int[4];
for(int i=0;i
文件内容:
import java.lang.*;
public class JDemo extends Object
{
private static int InstanceCount = 0;
private boolean isStudent;
private String name;
private int[] number;
public JDemo()
{
//初始化对象
System.out.println("Construct instance "+JDemo.InstanceCount+" of class JDemo...");
this.InstanceCount++;
number = new int[4];
for(int i=0;i