File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes General Computing and the fly likes Integrating fragment of LGPL code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Integrating fragment of LGPL code" Watch "Integrating fragment of LGPL code" New topic

Integrating fragment of LGPL code

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Hi all
We are writing a commercial Java application in swing,
One of the modules allow user to compare text files so instead of writing our own Diff we would like to integrate LGPL one.
So I was wondering if it is possible to integrate a fragment of source code from LGPL software or use its classes from JAR files?

Quote from the LGPL license :
"Statically linked library is allowed if either source code or linkable object files are provided"
Is it the same deal with Jars?

Thank you
Peter Johnson

Joined: May 14, 2008
Posts: 5852

As far as I know (I'm no lawyer), simply including an LGPL JAR file in your distribution package, and having your code make calls into classes in that JAR file does not restrict you in any way regarding the licensing of your application. For example, you can use a commercial license and charge for your product.

You should, somewhere in your docs, acknowledge use of the JAR and let your users know where they can obtain the JAR and its source code.

JBoss In Action
Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Thank you,
I will also consult a lawyer for this matter.
I agree. Here's the link:
subject: Integrating fragment of LGPL code
It's not a secret anymore!