Page 1 of 1

Cant run simple Hello world program

PostPosted: Fri Sep 27, 2013 8:50 pm
by zzzimon
Hi, Ive been using docx4j to generate word files, and now i wanto start using it to generate power point files. I found sample files on the web: https://github.com/plutext/docx4j/tree/ ... 4j/samples

It contains among other a simple hello world java file, but when i run it i get errors: For example it doesnt find the setContents method of the slidepart class, and not the addSlide method of the MainPresentationPart class. When i look at the javadocs those methods do not exist. How come they are in the sample file if they dont exist. What am I doing wrong. I just wanto create a simple hello world file and see that the basics are working

/kind regards, Simon

Re: Cant run simple Hello world program

PostPosted: Sun Sep 29, 2013 7:24 pm
by jason
Unless you are running a current pre 3.0 nightly, you'll need an older version of the sample, from:

https://github.com/plutext/docx4j/blob/ ... World.java