last day (22 days later) » 

1:20 PM
1
A: Text comparison algorithm or program?

wumpzYou could e.g. look at: https://github.com/wumpz/java-diff-utils and to its examples https://github.com/wumpz/java-diff-utils/wiki/Examples. The modification to include your specific tags instead of markup charactars is easy: e.g. DiffRowGenerator generator = DiffRowGenerator.create() ...

 
Could you please let me know the JAR and its Version for Diff-utils because I am getting compile error 'The method create() is undefined for the type DiffRowGenerator.'
I got it from your first link, Thanks Let me try your approach.
 
You have to compile it yourself. Other versions of former googles java-diff-utils are at maven central (I think version 1.3.0). But This code snipped works for version 2.0-SNAPSHOT at the repository at github. Beware the changed groupid.
 
getting error : "Missing artifact com.github.java-diff-utils:diffutils:jar:2.0-SNAPSHOT" at POM.xml
[WARNING] The POM for com.github.java-diff-utils:diffutils:jar:2.0-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------‌​------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------‌​------------
 
You got this building java-diff-utils???
 
No, i did not :( I am just adding dependency at POM.xml and trying to Install, getting BUILD FAILURE. Do I need to add any other extra JAR's, I am new to Maven <dependency> <groupId>com.github.java-diff-utils</groupId> <artifactId>diffutils</artifactId> <version>2.0-SNAPSHOT</version> </dependency>
 
1:20 PM
Aha. I see. As I said. You have to checkout java-diff-utils from the repository and make there a "clean install". Then you have the needed JAR in your local repository and now you should be able to build your project.
 
Will it work with JRE 8? Only
 
Yes. With 2.0-SNAPSHOT v8 is needed. You could downgrade to another version. But as ever there is less functionality.
You should definitly give Java v8 a try.
 
Yeah I did it and got the Jar's 1) 'diffutils-2.0-SNAPSHOT-javadoc.jar' 2) diffutils-2.0-SNAPSHOT.jar, Let me try further steps. I will update you for sure :)
Working Like Champ :) Marvelous, Let me use this in my real use case. Thanks, Good Job
How can I use your JAR's in Java v7, Is there any other way? Because my current project is in Java 7.
 
I refactored it heavily to Java 8. So very problematic for v 2.
 
can I use these Jars in my project, Its freeware Right?
 
1:20 PM
Part of it is licensed under Apache V2 and the histogram diff part is Eclipse licensed. These are open source licenses which allow usage under specific conditions in even commercial projects. The term freeware is imho wrong.
 
Hi Wumpz...
I had one query! Can I use these jars in my project?
i mean, it is coming under Apache v2 license?
 

  last day (22 days later) »