Java Archive

How to Solve WARNING clock of the subversion server appears to be out of sync

When I tried to build project from Subversion in Jenkins, I got these error messages: WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior. So, after googling for a while, the easiest solution was add @HEAD at the end of the Repository URL.

How to Solve RA layer request failed in Eclipse

I want to synchronize my workspace with Subversion repository using Subclipse, but there’s some error message that says RA layer request failed. After I googling for a while, this error happened because my network is using proxy server. So, I need to edit some file. FYI, my computer OS is Windows Vista. You may

Unbound Classpath Variable M2_REPO in Eclipse

So here’s the situation, I just checked out new project from SVN (Subversion) and when I open up my Eclipse, there are lots of Java Build Path Problems. The error says something like this: Unbound classpath variable: 'M2_REPO/...' If you get those errors, it means you haven’t set M2_REPO variable in your Eclipse. How

How to Ignore Outdated Plugins in Google Chrome / Chromium

When I try to access some website that requires some plugin, e.g. Java, Google Chrome / Chromium is always check whether the plugin is updated or outdated. We’re recommended to always update the plugins whenever it’s available. But, in this case, I don’t want to update the Java plugin. So I decided to ignore

How to Deploy and Redeploy a Maven Web Application in Tomcat7

First, we need to set up a simple Maven web application as an example. mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -DgroupId=id.web.el -DartifactId=mywebapp -Dversion=1.0-SNAPSHOT By using above command, we have created a very simple Maven web application, named mywebapp. Then we need to edit the pom.xml file, located inside the mywebapp directory. Add these lines below,

How to Install Java Plugin for Chrome, Chromium and Firefox in Ubuntu

So, you’ve installed Java on your machine, but your Chrome, Chromium or Firefox browser doesn’t recognize it. Here’s how to enable Java plugin for Chrome, Chromium and Firefox in Ubuntu. All you need to do is just creating a symbolic link of libnpjp2.so. You can find it in your Java home directory, mine is

How to Formatting a Date in JSP

In JSP, to format a date into some pattern, you can use JSTLĀ <fmt:formatDate>. Let’s assumed that ${bean.createdDate} returns java.util.Date, here’s how to use it: <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/format" %> ... <fmt:formatDate value="${bean.createdDate}" pattern="MMM-dd-yyyy / HH:mm:ss" />