Showing posts with label path. Show all posts
Showing posts with label path. Show all posts

Saturday, 7 May 2016

context,servlet, path info

The servlet engine splits the URI into three useful sections: the context path (application prefix), the servlet path, and the path info.

For example, given an application prefix of '/myapp', the api /myapp/dir/test.jsp/data will be split as follows:

/myapp/dir/test.jsp/datagetRequestURI()
/myappgetContextPath()
/dir/test.jspgetServletPath()
/datagetPathInfo()

REF : Servlet API

Monday, 25 April 2016

set the java path permanently in linux

c) set the java path

export JAVA_HOME=/usr/java/jdk1.8.0_45

d) Setup JRE_HOME Variable

export JRE_HOME=/usr/java/jdk1.8.0_45/jre

e) Setup PATH Variable

export PATH=$PATH:/usr/java/jdk1.8.0_45/bin:/usr/java/jdk1.8.0_45/jre/bin

environment variable :

/etc/environment

to set the variable permanently.

go to directory
/etc
open profile.
cmd : vi profile

set all the variable at the bottom of the pofile.
check from new command window weather you are able to see the path.

find java path in linux.

find java path in linux.

a) which java
output : /usr/bin/java.

b) readlink -f $(which java)
output : /usr/java/jdk1.8.0_45/jre/bin/java