Archive | Uncategorized RSS feed for this section

Eclipse : Proxy Authentication Required

20 Dec

solution

https://bugs.eclipse.org/bugs/show_bug.cgi?id=509498

http://stackoverflow.com/a/33631964/3676548

Aside

Arquillian + maven setup

21 Jun

Just copy and past in pom.xml file

Your arquillian setup  is ready.

 

 

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.1.11.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<version>1.1.5.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-weld-ee-embedded-1.1</artifactId>
<version>1.0.0.CR3</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<version>1.1.5.Final</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.ejb</groupId>
<artifactId>jboss-ejb-api_3.1_spec</artifactId>
<version>1.0.2.Final</version>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies>

Answer Please

21 Jun

Does Process oriented (Procedural) program is much faster than OOps program?

Please give your comments with why?

Extract Text from docx,pptx,xlsx using Apache POI 3.9

25 Feb

Java Tutorial and Code Solution

import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import javax.xml.parsers.ParserConfigurationException; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.openxml4j.exceptions.OpenXML4JException; import org.apache.poi.openxml4j.opc.OPCPackage; import org.apache.poi.xslf.extractor.XSLFPowerPointExtractor; import org.apache.poi.xssf.extractor.XSSFExcelExtractor; import org.apache.poi.xwpf.extractor.XWPFWordExtractor; import org.apache.xmlbeans.XmlException; import org.xml.sax.SAXException; public class FileParser{ /** * This method parses the .docx files. * * @param docx * @throws FileNotFoundException * @throws IOException * @throws XmlException * @throws InvalidFormatException * @throws OpenXML4JException * @throws ParserConfigurationException * @throws SAXException */ public void DocFileContentParser(OPCPackage docx) throws FileNotFoundException, IOException, XmlException, InvalidFormatException, OpenXML4JException, ParserConfigurationException, SAXException { XWPFWordExtractor xw = new XWPFWordExtractor(docx); System.out.println(xw.getText()); } /** * This method parses the pptx files * * @param pptx * @throws FileNotFoundException * @throws IOException * @throws InvalidFormatException * @throws XmlException * @throws OpenXML4JException */ public void ppFileContentParser(OPCPackage pptx) throws FileNotFoundException, IOException, InvalidFormatException, XmlException, OpenXML4JException { XSLFPowerPointExtractor xw = new XSLFPowerPointExtractor(pptx); System.out.println(xw.getText()); } /** * This method parsed xlsx files * * @param xlsx * @throws FileNotFoundException * @throws IOException * @throws InvalidFormatException *…

View original post 118 more words