| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 834 人关注过本帖
标题:Help!Why!
取消只看楼主 加入收藏
lxh524
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2005-12-20
收藏
 问题点数:0 回复次数:0 
Help!Why!

help!help!
all the set path or classpath is ok but the error is only one , IS .....

C:\Documents and Settings\wl>cd c:\

C:\>cd jdk1.3.1_09

C:\jdk1.3.1_09>cd bin

C:\jdk1.3.1_09\bin>javac
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-O Optimize; may hinder debugging or enlarge class file

-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are us
ed
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-target <release> Generate class files for specific VM version


C:\jdk1.3.1_09\bin>javac Hello.java
error: cannot read: Hello.java
1 error

C:\jdk1.3.1_09\bin>java Hello.java
Exception in thread "main" java.lang.NoClassDefFoundError: Hello/java

C:\jdk1.3.1_09\bin>java Hello
Exception in thread "main" java.lang.NoClassDefFoundError: Hello

C:\jdk1.3.1_09\bin>

搜索更多相关主题的帖子: Why Help 
2005-12-20 20:52
快速回复:Help!Why!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.028276 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved