我试过,使用202.96.134.133 dns服务域名解析正常,应该是客户端dns的问题,可换个dns服务器看看你的classpath路径设置有问题。环境变量设置(建议将环境变量都检查一下,以我的设置为例)步骤:1.我的电脑-属性-高级-环境变量2.新增加java_home 设置为c:\java\jdk1.5.0_12 (你的jdk安装路径-建议路径为无空格、全英文形式)3.path 设置为(在path原路径前加上)%java_home%\bin;4.新增classpath 设置为.;c:\java\jdk1.5.0_12\lib 或. (英文的句号)5.验证。在开始-运行中,输入cmd进入命令行模式,输入java回车,如显示下述信息c:\users\javayyc>javausage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file)where options include: -client to select the "client" vm -server to select the "server" vm -hotspot is a synonym for the "client" vm [deprecated] the default vm is client. -cp -classpath a ; separated list of directories, jar archives, and zip archives to search for class files. -d= set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version: require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private jres in the version search -? -help print this help message -x print help on non-standard options -ea[:...|:] -enableassertions[:...|:] enable assertions -da[:...|:] -disableassertions[:...|:] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:[=] load native agent library , e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:[=] load native agent library by full pathname -javaagent:[=] load java programming language agent, see java.lang.instrument 在开始-运行中,输入cmd进入命令行模式,输入javac回车,如显示下述信息: c:\users\javayyc>javac 用法:javac 其中,可能的选项包括: -g 生成所有调试信息 -g:none 不生成任何调试信息 -g:{lines,vars,source} 只生成某些调试信息 -nowarn 不生成任何警告 -verbose 输出有关编译器正在执行的操作的消 -deprecation 输出使用已过时的 api 的源位置 -classpath 指定查找用户类文件的位置 -cp 指定查找用户类文件的位置 -sourcepath 指定查找输入源文件的位置 -bootclasspath 覆盖引导类文件的位置 -extdirs 覆盖安装的扩展目录的位置 -endorseddirs 覆盖签名的标准路径的位置 -d 指定存放生成的类文件的位置 -encoding 指定源文件使用的字符编码 -source 提供与指定版本的源兼容性 -target 生成特定 vm 版本的类文件 -version 版本信息 -help 输出标准选项的提要 -x 输出非标准选项的提要 -j 直接将 传递给运行时系统 出现上述帮助信息,证明环境变量配置成功,希望可以帮到你。