开发者

Where is the standard java package located on the HDD?

开发者 https://www.devze.com 2023-01-19 11:37 出处:网络
When I do an import like this: import java.awt.event.MouseEvent; I can use the 开发者_Python百科methods/fields from that Class. I\'m just wondering where this package is actually located on my HDD.

When I do an import like this:

import java.awt.event.MouseEvent;

I can use the 开发者_Python百科methods/fields from that Class. I'm just wondering where this package is actually located on my HDD.


It depends on your system and your JRE emplacement.

On Mac OS it's in /System/Library/Frameworks/JavaVM.framework/Home/bundle/Classes/classes.jar

On Windows or Linux in $JAVA_HOME/jre/lib/rt.jar (thanks @kuropenguin for the information)
$JAVA_HOME depending on where you've installed your JDK.

On other systems, you'll have to look for yourself.


If you have the class present in Eclipse you kan find the physical placement in the Properties for the class.

0

精彩评论

暂无评论...
验证码 换一张
取 消