Java
Java – A Programming language
-
How to find running script path & its directory in linux ?
SCRIPT=$(readlink -f “$0”) echo $SCRIPT‘ is the script path.’ SCRIPTPATH=$(dirname “$SCRIPT”) echo $SCRIPTPATH‘ is the script directory path.’ Read More
-
How to add cacerts to the machine ?
How to add cacerts to the machine ? keytool -importcert -alias xyzsl -trustcacerts -keystore cacerts -storepass changeit -file xyz/xyz.cer keytool… Read More
-
How to generate WAR for Dynamic Web Project via maven ?
Just add pom.xml inside project folder. Add the following: <project xmlns=“http://maven.apache.org/POM/4.0.0” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>CrunchifyTutorial</groupId> <artifactId>CrunchifyTutorial</artifactId> <version>0.0.1–SNAPSHOT</version> <packaging>war</packaging>… Read More
-
How to resolve cast exception in toArray() method ?
Java toArray() method directly for Primitive Data Type. How to use same method for String or Other Custom class… Read More
-
What is Web services ?
Web Services is a service can be written in any supporting languages such as Java, .Net … Web Services establishes communication… Read More
-
SVN installation on Ubuntu
$ sudo apt-get install subversion It requires to need a directory for your repositories, as well as other Subversion-related files.… Read More
-
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
Lets try to understand the Error: As the error show the code is built for Java 7. If you try… Read More
-
How to update URL param in Javascript
function updateURLParam(uri, key, value) { var re = new RegExp(“([?&])” + key + “=.*?(&|$)”, “i”); var params = uri.indexOf(‘?’) !==… Read More
-
How to generate access token in Spring ?
URL to generate access_token: Type 1: Generation of token using Username & password: http://localhost:8080/<app_name>/oauth/token?grant_type=password&client_id=restapp&client_secret=restapp&username=techie&password=techie@rest Type 2: Generation of token without… Read More
