| Home | My Account | Directories |
How to set JAVA_HOME environment in Linux, Unix and Windows
Published on 2012-02-21 23:34:00
JAVA_HOME is a system environment variable which represent JDK installation directory. When you install JDK in your machine (windows, Linux or unix) it creates a home directory and puts all its binary (bin), library(lib) and other tools. In order to compile java program "javac" tool should be in your PATH and in order to get that in PATHwe use JAVA_HOME environment variable. Many tools like ANT and web servers like tomcat use JAVA_HOME to find java binaries. In this article we will see
What is Race Condition in multithreading – 2 Examples in Java
Published on 2012-02-21 23:08:00
Race condition in Java is a type of concurrency bug or issue which is introduced in your program because parallel execution of your program by multiple threads at same time, Since Java is a multi-threaded programming language hence risk of Race condition is higher in Java which demands clear understanding of what causes a race condition and how to avoid that. Anyway Race conditions are just one of hazards or risk presented by use of multi-threading in Java just like deadlock in Java. Race co
JSTL set tag or <c:set> examples in JSP – Java J2EE Tutorial
Published on 2012-02-21 19:30:00
JSTL set tag or <c:set> also called as JSTL Core tag library is a good replacement of <jsp:setProperty> jsp action which lacks lot of functionality and only allow you to set bean property. you can not set Map's key value or create a scoped variable by using <jsp:setProperty>. jstl <set> tag allows you to do all the stuff related to setting or creating variables or attributes. by using JSTL <c:set> tag you can : Read more » Java, Unix, Tibco RV and FIX Protocol