[Solved] How to fix java.lang.InstantiationException

What is java.lang.InstantiationException? A java.lang.InstantiationException is thrown when JVM cannot instantiate a type at runtime. To make this definition more elaborate. A java.lang.InstantiationException can be thrown when you try to create an instance of a non-instantiable type or a legit concrete class without having nullary constructor, dynamically during runtime using Class.newInstance() method. To be more … Read more

How to Show Last Updated Date in Posts with Genesis Framework

To keep the blog content fresh and more relevant, it is very important to keep on updating the content as per the need. Sometimes people particularly look for the date of the article and decide whether to proceed further to read it or not. I did that many times. Nobody would like to read content … Read more

Get Environment Variables and System Properties in Java

What is an Environment Variable? An environment variable is a system variable, and any program can access it for various reasons, like locating the path of the program, user names etc., which you would like to make it accessible for all or specific program. An environment variable often named all in CAPS, for example PATH. … Read more

Autowire using Java Based Spring Configuration

In one of our earlier post, we saw an example of Java based Spring Configuration. In that example, we created a Configuration class and wired the beans manually. In this example, we’ll autowire the Spring beans using @Autowired and other stereotype annotations and explore the power of auto wiring in Java based Spring Configuration. Class … Read more

Java based Spring Configuration

In the previous articles, we saw how to configure the beans based on XML and annotations. In this example, we’ll learn how we can configure beans based Java configuration, a third approach to configure Spring beans. We’ll follow the similar class design by coding to interfaces. Class Structure Item – a POJO class to store … Read more