[Java] Caution with Bootstrap using OOo 3.0.0

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

[Java] Caution with Bootstrap using OOo 3.0.0

Post 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.
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Post by acknak »

Maybe this will help explain the changes: http://wiki.services.openoffice.org/wik ... larization
AOO4/LO5 • Linux • Fedora 23
alexandrehaguiar
Posts: 2
Joined: Wed Oct 22, 2008 1:32 pm

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Post 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?
OOo 3.0.X on Ubuntu 8.x
alexandrehaguiar
Posts: 2
Joined: Wed Oct 22, 2008 1:32 pm

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Post by alexandrehaguiar »

Whats happen with the officebean.jar package? They dont exist in BROffice 3.0
OOo 3.0.X on Ubuntu 8.x
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Post 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.
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: [Java] Caution with Bootstrap using OOo 3.0.0

Post 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.
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
Post Reply