Make in difficult problem easier on Oracle Cloud, OIC, VBCS, PCS, AIC, ICS, API CS, SOA, OSB, Java and much more...

All posts in Java

Could not find or load main class org.gradle.wrapper.GradleWrapperMain

Sometime you may face error “Could not find or load main class org.gradle.wrapper.GradleWrapperMain” while working with Gradle project which is very difficult to find out the root cause of the…

Read more

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed

Sometimes users deal with “sun.security.validator.ValidatorException: PKIX path building failed” with the exception and don’t know how to solve the issue. Problem: This error occurred usually when we try to consume…

Read more

Convert Excel Exponential number in java

When we write the number in excel, it automatically converts in the exponential format and then try to get the values in Java using Apache POI API, it comes in…

Read more

How to Read Excel Files in Java using Apache POI

In this blog, we will show you how to read excel file using Apache POI (Poor Obfuscation Implementation) library which is very popular amongst the available library. Apache POI library Apache…

Read more

Reading file from remote server using SFTP connection

Below is the program that shows how to read file from SFTP server using java JSch API is widely used for connecting a SFTP using Java. Download JScp library from…

Read more

Prototype Design Pattern

In the prototype pattern, a new object is created by cloning an existing object. The prototype pattern can be a useful way of creating copies of objects. One example of…

Read more

Factory Method Pattern

A Factory Pattern or Factory Method Pattern says that just define an interface or abstract class for creating an object but let the subclasses decide which class to instantiate. In…

Read more

Singleton design pattern in java

Singleton Pattern says that just”define a class that has only one instance and provides a global point of access to it“. In other words, a class must ensure that only…

Read more

Design Patterns in java

Design Patterns are very popular among software developers. A design pattern is a well described solution to a common software problem. Sensible use of design patterns results in increased code…

Read more

Java Jndi datasource lookup

JNDI style is typical when using an application server(Weblogic, JBOSS) or a web container(Apache Tomcat). Here’s a example of the lookup Datasource created in Server. import java.sql.Connection;import java.sql.SQLException;import javax.naming.Context;import javax.naming.InitialContext;import…

Read more