Uncategorized

how to install,and configure java on linux

Install Oracle Java Runtime Environment (JRE) To check if you Oracle Java installed, type the following command in Terminal. java -versionwhich reside at /usr/bin/javaget Oracle Java from the Java.net website at http://www.java.com/en/download/manual.jsp.     Create a folder named oracle-jre and navigate into it. Copy the downloaded “tar.gz” archive file into this directory. Select the “tar.gz”… Continue reading how to install,and configure java on linux

java

How To Unzip Large File With Java

import java.io.*; import java.util.zip.*; public class UnZip { final static int BUFFER = 2048; // “/home/admin/Downloads/movies/stockv2@ingram.zip” public String unzipFile(String compressFilePath, String uncompressFolderPath){ String uncompressedFilePath=null; try { BufferedOutputStream dest = null; FileInputStream fis = new FileInputStream(compressFilePath); ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis)); ZipEntry entry; while((entry = zis.getNextEntry()) != null) { uncompressedFilePath=uncompressFolderPath+entry.getName(); System.out.println(“Extracting: ” +entry); int count;… Continue reading How To Unzip Large File With Java