You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by zzzimon <si...@hotmail.com> on 2013/04/30 11:22:04 UTC

How to install POI

Hi!

I want to run the following simple example that should create a Power Point
file with one empty slide:

import java.io.*;

public class NewPresentation {

  public static void main(String[] args) {

    XMLSlideShow ppt = new XMLSlideShow();

    XSLFSlide blankSlide = ppt.createSlide();

    FileOutputStream out = new FileOutputStream("newpresentation.pptx");
    ppt.write(out);
    out.close();
                

  }

}


How do I install POI? On the download page there are "binary" releases. I
downloaded that zip file and unzipped it and in it was some folders and
files. How do I install it and what import command should i use at the top
of the java file. Im used to using notepad and the command line for
compiling and running java programs. 

kind regards, Simon



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-install-POI-tp5712616.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: How to install POI

Posted by Lo...@log-net.com.
Simon,

You need to make sure you are including the POI jars in your classpath. If 
you are using ant I can send you my build.xml that will create a 
presentation?

-Lou


zzzimon <si...@hotmail.com> wrote on 2013-04-30 05:22:04 AM:

> From: zzzimon <si...@hotmail.com>
> To: user@poi.apache.org, 
> Date: 2013-04-30 05:46 AM
> Subject: How to install POI
> 
> Hi!
> 
> I want to run the following simple example that should create a Power 
Point
> file with one empty slide:
> 
> import java.io.*;
> 
> public class NewPresentation {
> 
>   public static void main(String[] args) {
> 
>     XMLSlideShow ppt = new XMLSlideShow();
> 
>     XSLFSlide blankSlide = ppt.createSlide();
> 
>     FileOutputStream out = new FileOutputStream("newpresentation.pptx");
>     ppt.write(out);
>     out.close();
> 
> 
>   }
> 
> }
> 
> 
> How do I install POI? On the download page there are "binary" releases. 
I
> downloaded that zip file and unzipped it and in it was some folders and
> files. How do I install it and what import command should i use at the 
top
> of the java file. Im used to using notepad and the command line for
> compiling and running java programs. 
> 
> kind regards, Simon
> 
> 
> 
> --
> View this message in context: http://apache-poi.
> 1045710.n5.nabble.com/How-to-install-POI-tp5712616.html
> Sent from the POI - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>