Eclipse, svn folder properties

Changes in properties of a folder. When you are adding a file to svn ignore list then you need to commit the top folder. Because you have changed the properties of the folder. svn:ignore list is not a local list. I always thought so. The svn ignore list is in the properties of that folder that exists in … [Read more…]

Quicksort in Java

Quicksort is a divide and conquer algorithm. It works by breaking an array into two sub-arrays and then recursively sort the sub-arrays. Steps for QuickSort Select the pivot element.  Any element that you choose would be called the pivot element. All the elements that are smaller than the pivot element are kept in one array … [Read more…]

Delete nodes from a Tree in Java

In this tutorial we will see how to delete nodes from a Tree. In my last tutorial create and traverse java tree tutorial I showed how to create a tree and then we also looked at an example of traversing the tree. Reference Tree The image below shows the Tree that we will use in this … [Read more…]

Java Tree implementation

In this tutorial I am going to show a simple Tree data structure implemented in Java.We will see how to create Tree data structure and also a mechanism of traversing the tree in a very easy way. The Tree which we will create in this tutorial will be the java representation of the image shown … [Read more…]

Sort List in Java using Collections.sort(List)

sort collection

In this tutorial, I will describe sorting list in java using Collections.sort(List). Here are some nice animations for sorting. I will be showing examples for 1. Sorting objects that implement Comparable 2. Sorting objects that don’t implement Comparable Sorting objects that implement Comparable We can sort  java.util.List using a java utility class java.util.Collections. We will … [Read more…]

java.lang.NoClassDefFoundError: org/springframework/orm/jpa/EntityManagerFactoryUtils on shutdown

Recently we faced an issue which occurred on the Ubuntu 14.02. The issue was that undeploy was not working properly. It had exceptions on undeploy about threads not being shutdown. If we tried to shutdown the tomcat afterwards, it just didn’t want to die. The tomcat process was still running even after calling the shutdown.sh … [Read more…]