Hi, Bernd, I've resolved the problem. Just in simple steps, as follows: In Eclipse, click Project-> Properties, in the Properties for FirstUnoContact Dialog, choose Java Build Path on the left, then choose Libraries tab, and click Add External Class Folder button, then choose /usr/lib/OpenOffice.org3/program, then it's ok to run.
Thanks for your suggestion. On 星期五, 六月 18, 2010 11:57 pm, Bernd Eilers wrote: ----------------------------------------------------------------------------------- Hi xiaofeng, well you did try to execute an "echo $CLASSPATH" in the shell and are sure the setting done in /etc/profile is really still there and not accidently being overwritten by some other code in $HOME/.bashrc for example, did you? Did you try to call the programm by using java from the commandline or did you try to start it from within the IDE. If later is the case the IDE has most likely its own java classpath settings for IDE projects somewhere in the project settings which might override your CLASSPATH environment variable setting. Kind regards, Bernd Eilers xiaofen...@iscas.ac.cn wrote: > Hi, OO folks, > > I tried to run the FirstUnoContact example in the 'Getting Started' section of > OpenOffice.org Developer's Guide, but got the common error: > > encounter a com.sun.star.comp.helper.BootstrapException claiming "no office > executable found!" > > The solution gave in the guide is to add the path to the OpenOffice.org > program > folder to the classpath (e.g. .../OpenOffice.org 3/program/). > > I added /usr/lib/openoffice.org3/program at the end of my /etc/profile, like following: > export JAVA_HOME=/usr/java/jdk1.6.0_20 > export > CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:/usr/lib/openoffice.org3/program/ > export PATH=.:$PATH:$JAVA_HOME/bin > > I logout and login again to enable the /etc/profile, but still got this error > when I > tried to run FirstUnoContact again. > > My platform is fedora 12, my IDE is eclipse, and I have done all the steps > listed > in the guide and every steps goes fine. > > So ,can anybody please give a suggestion? > > Thanks. > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > For additional commands, e-mail: dev-h...@openoffice.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org ----------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org