Category: Java

Java Online Tutorial

How to build a release in MVN in Linux

Navigate to project location where you should see pom.xml, assume source code is in SVN. Step#1 $svn update –username=<username> Step#2 $mvn clean Step#3 $mvn release:clean Step#4 (This is an optional step) $mvn -Ddry-run=true release:prepare -DscmCommentPrefix=”provide release information” Step#5 <Now Do the proper prepare> $mvn release:prepare -DscmCommentPrefix=”provide release information” First input: You need to provide release […]

Convert JKS to PKCS12

Self Signed JKs

SelfSigned JKS file can be generated for a development environment but the JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry-standard format using “keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.jks -deststoretype pkcs12“ Generate Self signed JKS narayanatutorial.jks file generated, now we can convert JKS to PKCS12 using the […]

How to check Java Heap Memory in windows system

Find Minimum Heap Memory Open windows command prompt and then enter the following command. javaw -XX:+PrintFlagsFinal | find “InitialHeapSize” Ouput Find Maximum Heap Memory Open windows command prompt and then enter the following command. javaw -XX:+PrintFlagsFinal | find “MaxHeapSize” Output Find ThreadStackSize , HeapSizePerGCThread Memory Open windows command prompt and then enter the following command. […]

CSV File Writing By ResultSet

CSV File Writing By ResultSet

CSV File Writing By ResultSet In this post I am going to explaining CSV File Writing By ResultSet by using opencsv jar file. You can see what is CSV file?. Find the below example and see how to create csv file by using ResultSet. Before going to write java program we need to download opencsv […]