Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗?
potomac





发贴: 73
积分: 1
于 2004-02-24 13:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
as title,
Regards.



作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
menzy



版主


发贴: 754
积分: 113
于 2004-02-24 13:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
rt.jar一般加上,tools.jar看你用不用


作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
JavaCodinger





发贴: 36
积分: 0
于 2004-02-26 10:07 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
还是加上比较好


I love Java
作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
nowplay





发贴: 3
积分: 0
于 2004-02-26 11:06 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这是jdk自己会搜索的,不用加。


作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:nowplay]
Jove



CJSDN高级会员


发贴: 1228
积分: 194
于 2004-02-26 11:28 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
非也非也, jdk只会加载rt.jar
如果你的程序需要动态调用javac,就把tools.jar加上

C:\>java -verbose
[Opened E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
[Opened E:\Java\j2sdk1.4.2_02\jre\lib\sunrsasign.jar]
[Opened E:\Java\j2sdk1.4.2_02\jre\lib\jsse.jar]
[Opened E:\Java\j2sdk1.4.2_02\jre\lib\jce.jar]
[Opened E:\Java\j2sdk1.4.2_02\jre\lib\charsets.jar]
[Loaded java.lang.Object from E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
[Loaded java.io.Serializable from E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
[Loaded java.lang.Comparable from E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
[Loaded java.lang.CharSequence from E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
[Loaded java.lang.String from E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
[Loaded java.lang.Class from E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
[Loaded java.lang.Cloneable from E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
[Loaded java.lang.ClassLoader from E:\Java\j2sdk1.4.2_02\jre\lib\rt.jar]
...



作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
daminggege





发贴: 29
积分: 0
于 2004-02-26 21:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
最好是都加上吧!


作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:daminggege]
potomac





发贴: 73
积分: 1
于 2004-02-27 11:54 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
daminggege wrote:
最好是都加上吧!


这句话就有点空泛,:)



作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
sc

Glenda

CJSDN高级会员


发贴: 194
积分: 30
于 2004-02-27 14:29 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
偶的IDE默认就没有加tools.jar


作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
dearmeiw





发贴: 108
积分: 10
于 2004-02-28 00:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
是的要加的!


作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:Jove]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2004-09-12 21:47 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Jove wrote:
>>
非也非也, jdk只会加载rt.jar
如果你的程序需要动态调用javac,就把tools.jar加上

如是如是Big Smile

没有必然的对与错,只有适合与否。

不妨认识一下 JAVA_HOME\lib 底下的 tools.jar 和 dt.jar 是甚么咚咚,需要不需要:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jdkfiles.html

又,如果不明白是否“程序需要动态调用javac”,那就当作不需要;IDE自己默认设定,阁下也默认好了。Smile



作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
lightsword



发贴: 0
积分: 0
于 2004-09-14 09:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
用到在加也行呀....我用的不多.呵....


作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
littledeer1974

Garbage Collector

CJSDN高级会员


发贴: 1517
积分: 122
于 2004-09-14 10:36 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
  
j2sdk1.4.2
___________|____________________
| | |
bin lib jre
| | __________|_____________________
java.exe tools.jar | |
javac.exe dt.jar bin lib
javap.exe _____|____ __________ ________|_______ ________ ________
javah.exe | | | | | | | |
javadoc.exe java.exe client server rt.jar ext security applet fonts
java.dll | | charsets.jar |
awt.dll jvm.dll jvm.dll localedata.jar


for reference Smile



Surround yourself with people who are open to change

作者 Re:J2sdk1.4 中还需要把 tools.jar , rt.jar 加到 Classpath 中吗? [Re:potomac]
kjjx





发贴: 62
积分: 0
于 2004-09-14 18:28 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不久一各文件么,加上何不加油多大关系



面临选择,我别无选择!
不见五凌豪杰散,无花无酒耕作田


flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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