K
kem
Unregistered / Unconfirmed
GUEST, unregistred user!
根据《Thinking in Java》一书,我写了一个简单的class在windows2000professional上当COM服务器使用,类写好了:
public class COMServerKemble
{ private int addend;
private int result;
public void setAddend(int a){ addend = a;}
public int getAddend(){return result;}
public void sum(){result += addend;
}
public void clear(){
result = 0;
addend = 0;
}
}
模仿书上的做法,在win2000的命令行敲入:C:/>javareg /register /class:COMServerKemble /progid:JavaCOMServerKemble.COMServ
erKemble.1 /typelib:JavaCOMServerKemble.tlb
但是,结果说:'javareg' is not recognized as an internal or external command,
operable program or batch file.
请问,这个javareg执行文件是不是win2000自带的??没有的话,去哪里有呢??
多谢!!!!
public class COMServerKemble
{ private int addend;
private int result;
public void setAddend(int a){ addend = a;}
public int getAddend(){return result;}
public void sum(){result += addend;
}
public void clear(){
result = 0;
addend = 0;
}
}
模仿书上的做法,在win2000的命令行敲入:C:/>javareg /register /class:COMServerKemble /progid:JavaCOMServerKemble.COMServ
erKemble.1 /typelib:JavaCOMServerKemble.tlb
但是,结果说:'javareg' is not recognized as an internal or external command,
operable program or batch file.
请问,这个javareg执行文件是不是win2000自带的??没有的话,去哪里有呢??
多谢!!!!