蟹老师的技术博客

JSP商务网站设计课程的一些基本资料

上机实验一思考题:

上机实验一思考题 :

1.       什么是 JDK

2.为什么要对环境变量 PATH CLASSPATH 进行设置 ?
3.什么是当前目录?当在DOS下运行JAVA命令时,所指的当前目录是什么?
4.DOS命令提示符下输入javac,出现哪些参数提示表示JDK安装成功?
5.

补充:

1. 为什么要设置类路径?

2. 如何设置类路径 ?
3.为什么要在Classpath中添加当前目录(“.”)?

posted on 2006-09-14 15:00 蟹老师的技术博客 阅读(366) 评论(6)  编辑  收藏 所属分类: 上机实验思考题

Feedback

# re: 上机实验一思考题: 2006-09-14 15:46 周伟

JDK 是Java开发工具包 (Java Development Kit ) 的缩写。它是一种用于构建在 Java 平台上发布的应用程序、applet 和组件的开发环境。

JDK是一切java应用程序的基础,所有的java应用程序是构建在这个之上的。它是一组API,也可以说是一些java Class。
  回复  更多评论   

# re: 上机实验一思考题: 2006-09-14 15:59 周伟

3.什么是当前目录?当在DOS下运行JAVA命令时,所指的当前目录是什么?

JDK 缺省类路径是当前目录;当前目录是C:\  回复  更多评论   

# re: 上机实验一思考题: 2006-09-14 16:01 周伟

4.DOS命令提示符下输入javac,出现哪些参数提示表示JDK安装成功?


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
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
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
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options  回复  更多评论   

# re: 上机实验一思考题: 2006-09-17 10:40 金恩慧

2.为什么要对环境变量 PATH 和 CLASSPATH 进行设置 ?
path意思是返回指定文件、文件夹或驱动器的路径,设置path使他指向JDK的bin目录,这样你在控制台下面编译、执行程序时就不需要再键入一大串路径了,方便我们。
CLASSPATH 是java内置类库的路径。  回复  更多评论   

# re: 上机实验一思考题: 2006-09-17 10:56 金恩慧

路径是给系统提供找到程序的路线,设置了路径,每次需要这个程序的时候系统就很方便的自动的去找了,否则每次都要自己手动输入路径 很麻烦。
  回复  更多评论   

# re: 上机实验一思考题: 2006-09-28 21:49 谁有作业请发个emil谢谢

jeh1314@163.com
谢谢  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: