hodex
级别: 测试新手
精华:
0
发帖: 40
基地声望: 8 点
基地币: 6649 Bug
基地贡献: 0 点
好评度: 0 点
在线时间:12(小时)
注册时间:2005-12-08
最后登录:2006-03-15
|
[求助]问两个小问题(eclipse和tomcat的) 谢谢!
问两个小问题
1,在eclipse中有如下代码 public class SimpleTest extends TestCase { public static void main(String[] args) { junit.swingui.TestRunner.run(SimpleTest.class); } public void testNothing() throws Exception{ new JFrame("nothing").setVisible(true); //Thread.sleep(1000);//为了让窗口能够显示 } } 当我run as application时是正常的 但run as junit test 时,窗口只会一闪而过(去掉注释会停一秒) 有无办法使窗口不自动dispose.
2,关于tomcat的 当我运行开始菜单里的Monitor Tomcat,运行一个jsp时,就会出现 Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK 但当我用bin下的startup.bat时,却又正常,何解?
谢了先
[hodex] 摆了个POSE道:你、你、你没我酷..

|
|
|
|
[楼 主]
|
Posted: 2005-12-12 19:31 |
| |