Fix JSP compilation error in WildFly 8 using Java 8

My current project run on WildFly 8 using Java 7. I was assigned the task of migrating the existing project to work on Java 8. So my first target was to install Java 8. After installing Java 8 my next target was to deploy my project in WildFly 8 and start the server. Everything went fine until i got stuck at JSP compilation error. In this article we would learn how we can fix the JSP compilation error in WildFly 8 using Java 8.
Continue reading

Switch between Java version on Ubuntu

My current project runs on Java 7 and I wanted to test the same project in Java 8. My first step was to install Java 8 on my Ubuntu system. After installing Java 8 now it’s time to test my application. All went successful and now I have to switch back to Java 7 since my current development environment uses Java 7. I was stuck when searching on google on how to switch back to Java 7. In this article we would learn how we can switch over multiple Java version on Ubuntu systems.
Continue reading

Search for class files inside Jar Package

In production environment we often come across scenarios where we want to search for class files among the jars loaded in class path. Most common approach we take is to search in our local editor, which is time consuming. The better approach is to use the ‘find’ command provided by Linux.
Continue reading

Java – Check whether Date is in DayLight Saving Time

I am using TimeZoneJS to compute the timezone date in JavaScript. But there is a limitation in TimeZoneJS to provide an interface to check whether the date provided is in DayLight Saving Time(DST). To check whether date in particular timezone is DST we had to perform server side computation in Java. In this article we would learn how we can check whether particular date is in DST.
Continue reading