Page 1 of 1

[Java] Caution with Bootstrap using OOo 3.0.0

Posted: Fri Oct 17, 2008 1:18 pm
by hol.sten
Reminded through a reply to my thread [Java] Caution with Bootstrap using OOo 3.0.0rc1, I gave OOo 3.0.0 today another Bootstrap try. And the problem remains.

For no apparent reason, the developers of OOo 3.0.0 changed the folder structure of the OOo installation (at least on Windows XP). You have now inside your OOo installation folder several subfolders: Basis, licences, program, readme, share, and URE. All of OOo's JAR files are located in subfolders of Basis\program\classes and URE\java. soffice.exe is located in the subfolder program.

With this new folder structure the Bootstrap class in the JAR file juh.jar (now located in URE\java), cannot locate soffice.exe anymore! Bootstrap uses the NativeLibraryLoader class which looks only in the current folder and in the parent folder of the juh.jar file location for soffice.exe. So it seems, it's not that clever to separate these folders too far from each other.

So, if someone encounters "no office executable found!" with OOo 3.0.0 solve it this way for example: Copy juh.jar from the subfolder URE\java to the subfolder program or program\resource or any other subfolder inside of program and put that copied juh.jar into your java CLASSPATH. Or give [Java solution] "no office executable found!" a try.

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Posted: Fri Oct 17, 2008 5:19 pm
by acknak
Maybe this will help explain the changes: http://wiki.services.openoffice.org/wik ... larization

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Posted: Wed Oct 22, 2008 1:43 pm
by alexandrehaguiar
There is any way to get the uno jars directory(juh.jar...) from windows registry or other that does not change from 2.1 to 3.0 versions?

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Posted: Wed Oct 22, 2008 1:55 pm
by alexandrehaguiar
Whats happen with the officebean.jar package? They dont exist in BROffice 3.0

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Posted: Wed Oct 22, 2008 7:17 pm
by hol.sten
alexandrehaguiar wrote:There is any way to get the uno jars directory(juh.jar...) from windows registry or other that does not change from 2.1 to 3.0 versions?
No! Java can run on various operating systems and the Windows registry only on Windows. So such a "solution" would be useless.

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Posted: Wed Oct 22, 2008 7:23 pm
by hol.sten
alexandrehaguiar wrote:Whats happen with the officebean.jar package?
The officebean.jar is located in the folder C:\Program Files\OpenOffice.org 3\Basis\program\classes of my OOo 3.0 installation. So at least it still exists with OOo 3.0.
alexandrehaguiar wrote:They dont exist in BROffice 3.0
We have no special knowledge of the Brazilian version BROffice.org 3.0 of OOo 3.0. So you should ask this BROffice.org 3.0 specific question the people who created BROffice.org 3.0.