Tomcat-Java Path Setting

Step 1: Right click on computer – > properties – > Advanced system settings – > Advanced – > Environment Variables – > User variables. Step 2: Create New and type as follows, variable: JAVA_HOME value : C:\Program Files\Java\jdk1.6.0 variable: JRE_HOME value : C:\Program Files\Java\jre1.6.0 variable: PATH value : C:\Program Files\Java\jre1.6.0;C:\Program Files\Java\jdk1.6.0\bin;C:\Program Files\Java\jre1.6.0\bin;C:\apache-tomcat-6.0.14\bin; variable: CLASSPATH value : c:\Program Files\Java\jdk1.6.0\jre\lib Step 3: If tomcat

242 total views, no views today

» Read more

Ubuntu 11.1.0 Basic Configuration

The below mentioned steps are required to install any softwares in ubuntu from internet directly, Step 1: System settings -> Software sources -> Ubuntu software. Please check the source code option and, Choose Main server from the Download from drop down. After selecting this it will ask us for password(ubuntu password). then close it.   Step 2: Open the terminal and type sudo

125 total views, no views today

» Read more

Ant (configuration and My First Ant)

Step 1: Set the environment variables as follows, Start -> My Computer -> Rightclick on it and click properties -> Advanced System Settings-> Advanced -> Environmental variables -> create new on the user variables and type, 1. Variable Name: JAVA_HOME Variable value: jdk path.(say C:\Program Files\Java\jdk1.7.0) 2. Variable Name: ANT_HOME Variable Value: Ant path (say C:\Apache Ant 1.7.1) 3. Variable Name: Path Variable Value: Ant path;Jdk path (say C:\Apache Ant 1.7.1\bin;C:\Program Files\Java\jdk1.7.0\bin;) Note:

698 total views, no views today

» Read more

Inserting backslash in mysql

Consider the below table for your clear understanding of backslash insertion in mysql, create the myday table with two attributes (say a and b), I am inserting the example below data’s, Insert into myday (a,b) values (“naveen”,”javadomain\java”); If you see the table data’s will be look likes below one, naveen javadomainjava. (no backslash) In order to solve this problem we

149 total views, no views today

» Read more

Replace function in java

In the below program we are replacing “\\” (2 backslash) with (4 backslashes). Actually \(backslash) is used for escaping characters. Here we have to escape backslash only. so only 8 backslashes are used to get 4 backslashes. Program: package god; public class ReplaceFunction { public static void main(String[] args) { String naveen = "javadomain\\naveendra\\eversoftindia"; System.out.println(naveen); String cool="\\\\\\\\\\\\\\\\"; System.out.println("after replacements using

194 total views, no views today

» Read more

Tomcat Started/stopped with errors, return code:1 Make sure you have java jdk or jre installed and the required ports are free

Problem: Solution: [sociallocker] Configure the server in the eclipse. go to windows -> show view -> servers then add the new wizard server. Now go to xampp control panel and start the apache and try. If it does not then change the port number of tomcat server in the eclipse by double clicking it and try again [/sociallocker]   If

1,288 total views, 2 views today

» Read more

Hudson project build

Step 1: Download the hudson war file from the below link, http://hudson-ci.org/download/war/ Step 2: Open the command prompt and go to the location of hudson war file that you have downloaded and type “java -jar hudson.war”. hudson.war is the exact name of the file in your system or location. It may be hudson-2.2.war or hudson-2.0.war etc…….. After you run you

188 total views, no views today

» Read more