I see couple of ways implementing this:
1) set environment variable to the java process being started from
GeneratePDF
2) since jod is java create own class loader, add jod jars to it: call
convert method (with setting environment variable or call appropriate
method)

I can handle it
should I?
which option from above is preferable?

On Tue, Apr 24, 2012 at 16:20, [email protected]
<[email protected]>wrote:

> I wonder if it ain't possible to set the office.home variable each
> time we do invoke the JODConverter Task.
> That way we could store the path to OpenOffice (or LibreOffice) home
> directory in our configuration. Also that way you can switch more easy
> between OpenOffice version and don't rely on JODConverter devs to
> maintain their algorithm that searchs for the "known places".
>
> Sebastian
>
> 2012/4/24 Maxim Solodovnik <[email protected]>:
> > OpenOffice daemon is not necessary anymore
> > but OpenOffice need to be installed into "known place" or officeHome
> should
> > be set to the office installation location.
> >
> >
> > On Tue, Apr 24, 2012 at 16:06, Alexei Fedotov <[email protected]
> >wrote:
> >
> >> It seems OpenOffice demon is not installed properly.
> >>
> >>
> >>
> >> 2012/4/24 梁 <[email protected]>:
> >> > when i tried new vesion
> >> "openmeetings-2.0.0.r1312033-10-04-2012_2308",the problem is solved。but
> >> when i upload “.txt” to “File”--“writeboard”,it have a error。
> >> > :Value: Exception in thread "main" java.lang.IllegalStateException:
> >> officeHome not set and could not be auto-detected at
> >>
> org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:163)
> >> at org.artofsolving.jodconverter.cli.Convert.main(Convert.java:111)
> >>
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
>
>
>
> --
> Sebastian Wagner
> https://twitter.com/#!/dead_lock
> http://www.openmeetings.de
> http://www.webbase-design.de
> http://www.wagner-sebastian.com
> [email protected]
>



-- 
WBR
Maxim aka solomax

Reply via email to