Steps to create sub-domain on Apache : 1). Uncomment “Include conf/extra/httpd-vhosts.conf” line in the httpd.conf file. 2).Open the httpd-vhosts.conf file and enter the below mentioned line- Note: 10.10.10.10 is the IP address of the server, provide the sub-domain name against the “ServerName” field and if there is any particular index.html file for this sub-domain then give the path of that ... Read More »
MyEclipse: Runtime Error R6025 “pure virtual function call”
Sometimes while opening some files or during starting we encounter the below mentioned error and our MyEclipse gets crashed – Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\...\jdk-1.6.0\bin\javaw.exe R6025 - pure virtual function call Solution for this problem is – 1) . Open the file workbench.xml in the location C:\…\\workspace\.metadata\.plugins\org.eclipse.ui.workbench\ 2) . Delete all the tag (This contains the ... Read More »
How to Find Apache HTTP server version in your Linux machine
The command to find the Apache HTTP server version in your Linux machine is httpd -v To run this command first go to your bin directory of Apache installed and then run the above command. Read More »
Configuring HTTP Apache Server and Tomact/ Jboss AS Application server
Download mod_jk (mod_jk.so is a Tomcat connector.) Download HTTP Apache server. And below I am describing the ways to configure mod_jk, HTTP Apache and Tomcat/Jboss AS 1). After downloading mod_jk rename this file as mod_jk.so 2). Place this file in the installed directory of apache in the below specified path – 3). Create the below mentioned files in the conf ... Read More »
Installation of Apache HTTP Server 2.2.x
1). Download the Apache HTTP Server from the apache official site based on the OS you use.Choose the correct OS based file. 2) Create a installation folder “apache” inside the dev folder. c:\dev\apache – I am going to use this folder path in my further reference. 3) Now run the setup and during the setup process fill the appropriate data ... Read More »
How to do Reverse DNS (rDNS) lookup in java
What is Reverse DNS Lookup Reverse DNS lookup or reverse DNS resolution (rDNS) is the determination of a domain name that is associated with a given IP address using the Domain Name System (DNS) of the Internet. Computer networks use the Domain Name System to determine the IP address associated with a domain name. This process is also known as ... Read More »
Executing Operating System/ Shell Commands In Java
In Java, you can execute external OS/shell commands. There are two ways to start an operating system process/execute shell command within Java: java.lang.Runtime#exec(java.lang.String), since Java 1 java.lang.ProcessBuilder, since Java 5 We will here show you both ways to execute Operating System/ Shell Commands 1. Using java.lang.Runtime The java.lang.Runtime class allows the application to interface with the environment in which the ... Read More »
How To Use HttpClient
This java based tutorial is designed to provide a basic overview of how to use HttpClient. Downloaded HttpClient and dependencies listed below that are required to put them on your classpath. httpclient-4.2.3.jar from http://hc.apache.org/downloads.cgi/li> commons-codec.jar from http://commons.apache.org/codec/ commons-logging.jar from http://commons.apache.org/logging/ junit.jar from http://www.junit.org/ The general process for using HttpClient consists of a number of steps: Create an instance of HttpClient. ... Read More »
How To Set Fake User Agent
How to set fake user agent What is user agent? User agent is software agent that is acting on behalf of a user. For example, an email reader is a mail user agent, and in the Session Initiation Protocol (SIP), the term user agent refers to both end points of a communications session. User agent acts as a client in ... Read More »
How To Avoid Memory Leak in Java
How to avoid Memory leak issue in Java What is Memory Leak? Memory leak mainly occurs when a program does not release the memory it has obtained for temporary use, it is the condition where the available computer memory reduces gradually there by resulting in poor performance. How to determine if Memory Leak exists in a Java application?If the application ... Read More »
Jkoder.com Tutorials, Tips and interview questions for Java, J2EE, Android, Spring, Hibernate, Javascript and other languages for software developers