子类重写构造函数怎么用?另外tomcat5.0有问题
1.class Animal {
Animal() {
System.out.print ("Animal "); }
}
public class Dog extends Animal {
Dog() {
System.out.print ("Dog "); }
public static void main(String[] args) {
Dog snoppy= new Dog(); }//dog.java
}
为什么输出:Animal Dog ?
2.tomcat5.0安完,设java_home,path,classpath,server.xml也嫁了虚拟目录,为什么localhost正常
虚拟目录自己的jsp报错?
Unable to compile class for Jsp
No java Compiler was found to compile the generated source for the jsp
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar form the JDk......