Tag Archives: java

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 … Continue reading

Posted in Uncategorized | Tagged , , ,

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 … Continue reading

Posted in java | Tagged , , | 1 Comment