标题: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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-39148-1-1.html




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

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