开发者

Where is swing.jar in jdk1.6.0?

开发者 https://www.devze.com 2023-02-26 00:05 出处:网络
I read this 开发者_StackOverflowtut http://www.iam.ubc.ca/guides/javatut99/uiswing/start/swingStart11.html

I read this 开发者_StackOverflowtut http://www.iam.ubc.ca/guides/javatut99/uiswing/start/swingStart11.html

but I can't find swing.jar in my jdk1.6.0 folder ?


No swing.jar - the swing classes are in rt.jar (of the jre). It's a massive jar containing everything.

Sun (now Oracle) are trying to break that massive jar into modules, but it is not easy. See this article. Project jigsaw is aimed at modularizing the JRE. But for now - it's all in rt.jar


The javax.swing package is included in rt.jar.


This is a very, very old page discussing Java 1.1 which didn't include Swing.

These days Swing is part of the standard Java runtime library available out of the box.

0

精彩评论

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