Posts

Showing posts from March, 2018

Eclipse Shortcuts

F2 :- To display java docs associated with a class or method Ctrl D:- To remove a line. Extract Method from lines Select lines --> Rt. Click refractor -----------> Select Extract Method -------> It will create method from these lines

Formula to Check for Duplicates Records in Excel

Below is the formulae you can use to check value is duplicate or not =IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2,C$2:C2,C2,D$2:D2,D2,E$2:E2,E2)>1,"Duplicate Value","Not Duplicate") Using it you highlight duplicate value with  color except first one.

Create a war file from jsp,html etc

Below is the command to create a war file jar cfv (name of the war file) WEB-INF [*.html] [*.jsp]......... here c is create, f is file and v is verbose.

How to start Apache tomcat server from command prompt

Hi All below are commands to run for starting apache  tomcate server C:\Program Files\Java\jre1.8.0_161\bin>set JAVA_HOME=C:\Program Files\Java\JDK1. 8.0_161 C:\Program Files\Java\jre1.8.0_161\bin>set CLASSPATH=C:\PROGRAM FILES\JAVA\JDK1. 8.0_161 C:\Program Files\Java\jre1.8.0_161\bin>set CATALINA_HOME=C:\Downloads \apache-tomcat-8.5.28-windows-x64\apache-tomcat-8.5.28 C:\Program Files\Java\jre1.8.0_161\bin>C:\Downloads\apache-tomcat-8.5 .28-windows-x64\apache-tomcat-8.5.28\bin\startup.bat