Topic: 一直没弄明白需要运行java是要哪些配置? |
Print this page |
1.一直没弄明白需要运行java是要哪些配置? | Copy to clipboard |
Posted by: kittyyyl Posted on: 2004-09-05 18:34 winxp+jdk够了嘛? 还是要winxp+jdk+jvm? 还是winxp+jdk+jvm+jcreator之类的? 用了jcreator我在用如下code的时候出现问题望大侠指教 //: c03:Assignment.java // Assignment with objects is a bit tricky. import com.bruceeckel.simpletest.*; class Number { int i; } public class Assignment { static Test monitor = new Test(); public static void main(String[] args) { Number n1 = new Number(); Number n2 = new Number(); n1.i = 9; n2.i = 47; System.out.println("1: n1.i: " + n1.i + ", n2.i: " + n2.i); n1 = n2; System.out.println("2: n1.i: " + n1.i + ", n2.i: " + n2.i); n1.i = 27; System.out.println("3: n1.i: " + n1.i + ", n2.i: " + n2.i); monitor.expect(new String[] { "1: n1.i: 9, n2.i: 47", "2: n1.i: 47, n2.i: 47", "3: n1.i: 27, n2.i: 27" }); } } ///:~ --------------------Configuration: JDK version 1.5.0 <Default>-------------------- E:\Assignment.java:3: package com.bruceeckel.simpletest does not exist import com.bruceeckel.simpletest.*; ^ E:\Assignment.java:10: cannot find symbol symbol : class Test location: class Assignment static Test monitor = new Test(); ^ E:\Assignment.java:10: cannot find symbol symbol : class Test location: class Assignment static Test monitor = new Test(); ^ 3 errors Process completed. path和classpath没对?还是怎么回事..5555不懂 |
2.Re:一直没弄明白需要运行java是要哪些配置? [Re: kittyyyl] | Copy to clipboard |
Posted by: why Posted on: 2004-09-05 20:17 Thinking in Java 3rd edition 于此不太理想…… 可以先改用 Thinking in Java 2nd edition 或者把以下的附件放在 CLASSPATH 上 即是,假设你把这个附件放在 G:\java\lib\ 上 SET CLASSPATH=.;G:\java\lib\tij3.zip (迟一点你会明白那是甚么。) tij3.zip (50.12k) |
3.Re:一直没弄明白需要运行java是要哪些配置? [Re: kittyyyl] | Copy to clipboard |
Posted by: kittyyyl Posted on: 2004-09-05 22:13 谢谢版大..在版大的指导下...有点明白了.. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |