Topic: 还是老问题 (NoClassDefFoundError, package Jvava.io does not exist) |
Print this page |
1.还是老问题 (NoClassDefFoundError, package Jvava.io does not exist) | Copy to clipboard |
Posted by: liujing319 Posted on: 2005-01-28 10:44 在执行java Hello 时候还是出现下面的错误! Exception in the thread"main"java.lang.NoClassDefFoundError:Hello 不知道还哪有毛病? 还有就是,如果我在前面加import Jvava.io.*; 语句时候,出现package Jvava.io does not exist 1. do a search on keyword "NoClassDefFoundError" 2. import java.io.* |
2.Re:还是老问题 (NoClassDefFoundError, package Jvava.io does not exist) [Re: liujing319] | Copy to clipboard |
Posted by: kay Posted on: 2005-02-01 14:17 我和你的问题一样 希望能一同进步 |
3.Re:还是老问题 (NoClassDefFoundError, package Jvava.io does not exist) [Re: liujing319] | Copy to clipboard |
Posted by: kay Posted on: 2005-02-01 14:19 我的电脑上按的是jdk1.3.1_15 在dos中执行javac时 可以把java文件编译成class文件 但在执行java是却出现了错误 我的文件路径名是F:\kay.class 命令过程是这样的 F:\>java kay Exception in thread "main" java.lang.NoClassDefFoundError:kay 我的文件源代码是 public class kay { public static void main(String[] args) { System.out.println("Kay"); } } 我的jdk1.3.1_15的路径是 c:\jdk1.3.1_15 我设的环境变量是 path=c:\jdk1.3.1_15\bin java_home=c:\jdk1.3.1_15 classpath=c:\jdk1.3.1_15\lib\dt.jar;c:\jdk1.3.1_15\lib\tools.jar 小弟弄了两天 中途成功了两次,但我不知道成功的原因 后来又不行了,我照样不知道原因 我的OS是XP home pack 1 我非常困惑邦托你帮忙 |
4.Re:还是老问题 (NoClassDefFoundError, package Jvava.io does not exist) [Re: liujing319] | Copy to clipboard |
Posted by: simbas Posted on: 2005-02-01 22:17 把classpath=c:\jdk1.3.1_15\lib\dt.jar;c:\jdk1.3.1_15\lib\tools.jar 改成classpath=.;c:\jdk1.3.1_15\lib\dt.jar;c:\jdk1.3.1_15\lib\tools.jar |
5.Re:还是老问题 (NoClassDefFoundError, package Jvava.io does not exist) [Re: liujing319] | Copy to clipboard |
Posted by: 鸡肋男 Posted on: 2005-02-02 09:51 在classpath中少加了一个点号,现在的人怎么都这么不仔细啊?? |
6.Re:还是老问题 (NoClassDefFoundError, package Jvava.io does not exist) [Re: liujing319] | Copy to clipboard |
Posted by: heart5 Posted on: 2005-02-02 10:53 懂了才会仔细啊 |
7.Re:还是老问题 (NoClassDefFoundError, package Jvava.io does not exist) [Re: kay] | Copy to clipboard |
Posted by: liujing319 Posted on: 2005-02-06 15:43 问题已经解决 新手嘛! 懂了才能仔细嘛 |
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 |