[Solved][Java]"no office executable found!" in runnable jar

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
hawkx
Posts: 12
Joined: Wed Mar 25, 2009 2:23 am

[Solved][Java]"no office executable found!" in runnable jar

Post by hawkx »

Refrenced by http://user.services.openoffice.org/en/ ... 44&t=10825

I copied juh.jar to OpenOffice.org 3/program, and I can run my project in my IDE, but after I archive my project to a runnable jar file and using java -jar project.jar to run it, then error occured: no office executable found!

Platform: Windows XP Professional
IDE: Eclipse 3.4.2
Office: OpenOffice 3.0.0 (2008-11-14) simplified chinese version
SDK: OpenOffice 3.0.0 SDK

Thanks for your help!
Last edited by hawkx on Thu Apr 02, 2009 2:27 am, edited 1 time in total.
OOo 3.0.X on Ms Windows XP
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: [Java]"no office executable found!" when using runnable jar

Post by hol.sten »

Did you gave the enclosed link [Java solution] "no office executable found!" a try? If not, why not? It should solve your problem.
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
hawkx
Posts: 12
Joined: Wed Mar 25, 2009 2:23 am

Re: [Java]"no office executable found!" when using runnable jar

Post by hawkx »

hol.sten wrote:Did you gave the enclosed link [Java solution] "no office executable found!" a try? If not, why not? It should solve your problem.
I saw it already, but i don't know where it from, is it a third party component?
OOo 3.0.X on Ms Windows XP
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: [Java]"no office executable found!" when using runnable jar

Post by hol.sten »

hawkx wrote:
hol.sten wrote:Did you gave the enclosed link [Java solution] "no office executable found!" a try? If not, why not? It should solve your problem.
I saw it already, but i don't know where it from, is it a third party component?
What do you mean with "third party component"? It's not shipped with OOo, but I created it by using some Java class files from the OOo CVS, enhanced the code and added a little, packed it as a JAR and uploaded it to the thread. So your free to download and use it. I've put all the Java source code within the JAR so you can even make your own changes, if you need them.
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
hawkx
Posts: 12
Joined: Wed Mar 25, 2009 2:23 am

Re: [Java]"no office executable found!" when using runnable jar

Post by hawkx »

hol.sten wrote: So your free to download and use it. I've put all the Java source code within the JAR so you can even make your own changes, if you need them.
I follow your Instructions and solved my problem, thank you very much!
OOo 3.0.X on Ms Windows XP
Post Reply