开发者

Releasing code containing Java Swing, what license? [closed]

开发者 https://www.devze.com 2023-01-04 11:23 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about programming within the scope defined in the help center.

Closed 7 years ago.

Improve this question

I'm getting to close to project completion, and I would like to make my code open source, releasing it under GPLv2 or Apache, something of that ilk. However, I had read somewhere that there is no free implementation of Java Swing, and开发者_Go百科 so code depending on swing couldn't be released under those licenses. Is this true? And if so, what licenses should I be looking at instead?


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 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.


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.


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:

0

精彩评论

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

关注公众号