-
Donate to Charity
If you like my works and tutorials on “mkyong.com”, please consider making a donation of $10 or whatever you can to protect and sustain the following charities :
Date: 2019-08-17 View: 1840
-
Java Write directly to memory
You have been told a lot that you can’t manage memory in Java. Well, it has changed since HotSpot release of the Java VM. There is a way to directly allocate and deallocate memory as well as write and read it… Of course we are talking about the JVM memory where the Java program runs. In this tutorial we are going to show you codes that deal with this topic.
Date: 2019-08-17 View: 1162
-
How To Get HTTP Request Header In Java
This example shows you how to get the HTTP request headers in Java. To get the HTTP request headers, you need this class HttpServletRequest :
Date: 2019-08-17 View: 1718
-
Java Check if web request is from Google crawler
If a web request is coming from Google crawler or Google bot, the requested “user agent” should look similar like this :
Date: 2019-08-17 View: 1394
-
The type DefaultHttpClient is deprecated
Eclipse IDE prompts warning on new DefaultHttpClient, mark this class as deprecated.
Date: 2019-08-17 View: 1646
-
Emma Class x appears to be instrumented already
Review the “maven-emma-plugin” in pom.xml :
Date: 2019-08-17 View: 1792
-
Maven site build is very slow dependency report
Creating a Maven site, but the build is very slow to generate the dependency report.
Date: 2019-08-17 View: 1745
-
Maven + Emma code coverage example
Emma is a free Java code coverage tool. In this tutorial, we will show you how to use Maven to generate the Emma code coverage report for your project, and also how to integrate the Emma report into the Maven project site.
Date: 2019-08-17 View: 1907
-
MongoDB Aggregate and Group example
In this tutorial, we will show you how to use MongoDB aggregate function to group documents (data).
Date: 2019-08-17 View: 1423
-
java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.spi.JtaPlatform
Spring 3.2.x + Hibernate 4.3.x integration, hits JtaPlatform ClassNotFoundException, search the project classpath, find out that JtaPlatform is at different package?
Date: 2019-08-17 View: 1849
-
Spring Security + Hibernate XML Example
In this tutorial, we will show you how to integrate Hibernate 4 in Spring Security, XML configuration example.
Date: 2019-08-17 View: 1529
-
log4j.xml Example
Here’s an XML version of log4j properties file, just for sharing.
Date: 2019-08-17 View: 1381
-
Debian : Change default Java version
Deployed a Debian 7.5 on Linode server, the default is using OpenJDK 1.6. How to upgrade to OpenJDK 1.7?
Date: 2019-08-17 View: 1384
-
Download file from server using SSH
Normally, you use Secure copy or SCP to download a file from another server via SSH connection. For example,
Date: 2019-08-17 View: 1458
-
Log4j hello world example
In this tutorial, we will show you how to use the classic log4j 1.2.x to log a debug or error message in a Java application.
Date: 2019-08-17 View: 1483