Topic: 各位高手能不能用一句话,把path和classpath说清楚.两个我到现在都搞不太清

  Print this page

1.各位高手能不能用一句话,把path和classpath说清楚.两个我到现在都搞不太清 Copy to clipboard
Posted by: yyqwolf
Posted on: 2007-04-11 20:50

各位高手能不能用一句话,把path和classpath说清楚.两个我到现在都搞不太清是怎么回事,谢谢~~~简单的说一句,还有我的浏览器运行不了小程序.只能用appletviewer来运行.好象是浏览器里没有内嵌JVA.怎么才能在浏览器里运行小啊,~~~谢谢了.本人很菜~~~~

2.Re:各位高手能不能用一句话,把path和classpath说清楚.两个我到现在都搞不太清 [Re: yyqwolf] Copy to clipboard
Posted by: Jcat
Posted on: 2007-04-11 22:50

1. Both of them are environment variable

2. PATH answers for OS (both in windows and linux). It is used to include some path (directory) in your shell. Then you can access the executables (refered by PATH) directly anywhere.

3. classpath answers for Java, exactly for commands such like javac or java (It is not necessary for IDEs). classpath is used to introduce or include all classes required to your class. So your class can know where to find other classes. Indeed, all classes in classpath can know each other.

PS. I am not a "高手" which results in more than ONE WORD. Dead


   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