What kind of "free" are you really looking for? You can release your code under either the GPL or Apache licences with no problems. It's fine to release GPL code which depends on non-free code - otherwise there could never be any GPL Windows software, for example.
You can use whatever license you want with your Swing application. Open source licenses are however quite confusing. Here is a nice comparison chart that might help you decide what license best suits you:
发布评论
评论(4)
您实际上是在使用/修改 Swing 源代码还是只是发布使用 Swing 的代码?
如果是后者,您无需担心,可以根据您喜欢的任何开源许可证进行发布。
如果是前者,您可以将您的工作基于 OpenJDK Swing 源代码(GPL2)。因此,您可以愉快地以 GPL2 形式重新分发。
Are you actually using/modifying the Swing source code or just releasing code that uses Swing?
If the latter, you don't need to worry about it and can release under whatever open source license you like.
If the former, you can base your work off the OpenJDK Swing source code which is GPL2. Hence you would be able to redistribute happily as GPL2.
AFAIK Swing 是每个 JDK/JRE 发行版的一部分,为什么您需要将它与您的应用程序一起重新发行?
除此之外,我不知道使用 Swing 的应用程序有任何限制。事实上,有不少基于它的开源工具。
AFAIK Swing is part of every JDK/JRE distribution, why do you need to redistribute it with your application?
Aside from that, I'm not aware of any restriction for applications using Swing. In fact, there are quite a few open-source tools based on it.
您真正在寻找什么样的“免费”?您可以在 GPL 或 Apache 许可证下发布您的代码,没有任何问题。发布依赖于非自由代码的 GPL 代码是很好的 - 否则永远不会有任何 GPL Windows 软件。
请注意,JDK 现在也是开源的,具有基于 GPL 和变体的许可证。
What kind of "free" are you really looking for? You can release your code under either the GPL or Apache licences with no problems. It's fine to release GPL code which depends on non-free code - otherwise there could never be any GPL Windows software, for example.
Note that the JDK is open source these days too, with a license based on GPL and variants.
您可以在 Swing 应用程序中使用您想要的任何许可证。
然而,开源许可证相当令人困惑。 这里是一个很好的比较图表这可能会帮助您决定哪种许可证最适合您:
You can use whatever license you want with your Swing application.
Open source licenses are however quite confusing. Here is a nice comparison chart that might help you decide what license best suits you: