Problem You may face the below error while running a Maven build java.lang.OutOfMemoryError: PermGen space Solution You must increase the Permanent Generation (PermGen) memory size of your JVM by passing the argument -XX:MaxPermSize and...
Monthly Archive: May 2016
Easy way to solve unsupported IClasspathEntry kind=4? on Maven project update
Problem You may encounter the below Maven error while importing or updating your Maven project on Eclipse IDE Unsupported IClasspathEntry kind=4? Solution This error is thrown when the old version of M2Eclipse Plugin (previous...
How to install Maven on Eclipse IDE ?
you can take advantage of the Apache Maven powerful features on your Eclipse IDE by installing the M2Eclipse Plugin. Installing the M2Eclipse Plugin Below steps to follow to install Maven on Eclipse IDE : Open your...
Delete files with extension in Java
Sometimes you need to delete files having certain extension within a directory. Two approach are possible, you can either list all files within the directory and check their extension before deletion or list only files having the extension using...
4 ways to copy file in Java
There is several ways to copy file from one location to another. 4 ways will be shown here : Writing a InputStream to an OutputStream Using FileChannel Using java.nio.file.Files Using Apache Commons IO FileUtils
Liferay client side portlet communication using Ajax
Introduction Once a portlet is placed on a portal page, its data is not directly shared with other portlets. IPC (Inter Portlet Communication) defines the ways that a Portlet can interact and communicate with another...