How to Create Build Java Project including all Dependencies Using Maven?...
Are you working on enterprise level Java Project? Using Maven POM.xml file to keep all dependancies up-to date? In your project do you have src folder, resources folder, lib folder, etc? Well, what if...
View ArticleHow to Create Java+Spring Based executable .jar with all Required...
Last week I wrote a tutorial on how to use maven-resources-plugin, maven-dependency-plugin & maven-jar-plugin to generate your complete executable Jar Project? As a result it creates / copies all...
View ArticleLittle late in the game but I’m glad I’ve started using BufferApp – Smart way...
Social Media is a Magic. Twitter, Facebook, Google+ and so many other game changer players are in the market. Purpose of this social media market is to spread the knowledge, articles across world. I...
View ArticleHave you noticed java.lang.NullPointerException (NPE)? Try These Best...
As a Java Developer, I’m sure you must have faced Null Pointer Exception (NPE) starting 1st day. In most of the cases NPE exception shows clear stack trace which pin points the root cause of the same...
View ArticleWhat is an Interface in Java? How it’s used? Java Tutorial Example Attached
I believe this is the 1st question you might expect in Java Interview. Very basic questions but widely used in interview :). There is no perfect answer for this and there are number of ways to answer...
View ArticleHave you noticed Race Condition in Java Multi-threading Concurrency Example?...
Sometime back I’ve written an articled on Producer Consumer Example and how to handle read write better way. On the similar note, in this tutorial we will discuss something on Race Condition and...
View ArticleInteresting – International Calling from Google Hangout is Cheaper than...
Google Voice and Google Hangout is in news today all over the place. AndroidPolice first today noted that Google Voice Integration Is Currently Rolling Out In Hangouts. Immediately after that I used...
View ArticleHow to Fork Github Repository, Create “Pull Request” and Merge?
Github is pretty awesome. I simply love using it. GitHub is a Git repository web-based hosting service which offers all of the functionality of Git as well as adding many of it’s own features. In this...
View ArticleWhat is an Abstract Class and Abstract Method in Java? When Should I use it?...
Couple of days back I wrote an article on basic Java Fundamental on What is an Interface in Java and How it’s used? This tutorial is also related to basic Java fundamental “Abstract Class and Abstract...
View ArticleBetter Understanding on Checked Vs. Unchecked Exceptions – How to Handle...
Checked Exception What is Checked Exception in Java Programming language. In simple language: Exception which are checked at Compile time called Checked Exception. Some these are mentioned below. If...
View ArticleHow to Move WordPress Admin Column Before OR After any other Column?...
WordPress is pretty amazing. More than 33k plugins in WordPress plugin repository. There are lots of customization we could do with the hooks and APIs available for us to use. Have you ever wonder –...
View ArticleHow to Execute tcpdump Linux Command using Java Process Class and Capture...
Lets take a look at a problem in which you may want to capture Tcpdump output in your Java Program. You may have There are N number of possibilities you may need to capture Tcpdump to analyse customer...
View ArticleCrunchify Moved to Bluehost’s Optimized Hosting for WordPress a Month Ago –...
Last month we moved to Bluehost’s Optimized – Managed Hosting for WordPress Plan. So far I’m very impressed and happy with the result. I was looking at the results and metrics & thought why not to...
View ArticleWhat is uptime in Linux and How to Parse Result in Java using Regular...
What is uptime in Linux? Sometimes you have to get load averages from uptime result via Java Program to perform certain operations. Like nuke, restart app, etc based on high load average. I’m talking...
View ArticleIn Java How to Find List of all Class Names from inside .jar File? – Jar...
This one will be very interesting. Last week I was working on a Java Project which requires me to have list of Classes from .jar file. With the help of JarEntry and JarInputStream utility I was able...
View ArticleHow to fix “org.eclipse.jst.ws.util.JspUtils cannot be resolved to a type”...
While creating sample WSDL in Eclipse and Generating Java Client I faced below issue. Here is a tutorial: http://crunchify.com/create-sample-wsdl-in-eclipse-and-generate-client/ This might be the...
View ArticleWhat is RegEx Pattern (Regular Expression)? How to use it in Java? Example...
What is RegEx: Regular Expression is a search pattern for String. java.util.regex Classes for matching character sequences against patterns specified by regular expressions in Java. You could use...
View ArticleHow to Create Singleton QUEUE Global Object – FIFO (First in First Out) in Java?
What if you want to implement your own Queue class in Java? The Queue module provides a FIFO implementation suitable for multi-threaded programming. It can be used to pass messages or other data...
View ArticleIn Java How to Read GitHub File Contents using HttpURLConnection +...
In this Java Tutorial we will go over steps to retrieve GitHub URL content using HttpURLConnection. In other words below is a Java API to get a file content from GitHub. Each HttpURLConnection...
View ArticleHow to Delete Files / Folders on Windows, Mac OS X and Linux Machine from Java?
Sometime back I’ve written an article on how to remove /tmp or unnecessary files / folder on Linux automatically via script? Now it’s time to write the same utility for Windows environment. In this...
View Article