Mathias Bauer wrote:
Hi,
[EMAIL PROTECTED] wrote:
Hi
I have been developing an assistive technology application in Java
which runs under Windows and Linux and obtains information about
various applications which it then relays to a blind or visually
impaired user. I am interested in having this tool work with
OpenOffice -- i.e., to relay information about what is on, e.g., a
document screen to the user.
please use the [EMAIL PROTECTED] mailing list if you want
to discuss assitive technology applications in conjunction with OOo. You
might have a better chance to get the desired information.
My Java code runs externally to any application. I have been
developing in Netbeans and I am having problems integrating the OO
aspects into that environment. The suggestion made in this post
http://www.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=15859
does not appear to be sufficient. Just adding the four jar files (juh,
jurt, unoil and ridl) still results in an error that there is no UNO
Runtime found.
I hope that our Java/SDK experts will have an idea, that sounds pretty
strange.
What is the exact error text (including stack trace, if applicable)?
At any rate, note that copying jars from OOo into your application can
only be considered a hack, which more or less works by chance (e.g., the
set of required jars could change, and by now you also might need to
copy unoloader.jar). The recommended way to use OOo from a Java
application is to use the "simple bootstrap" mechanism (which should be
explained in the Developer's Guide and the SDK); the recommended way to
use OOo's UNO environment (without starting OOo itself) from a Java
application would be to use something similar to the "simple bootstrap"
mechanism (that sets up appropriate classloaders so that the application
code finds all the necessary jars and other files within the OOo
installation, but does not start OOo), but this is unfortunately not
(yet?) available pre-packaged, so you would have to implement it
yourself; the recommended way to use plain UNO (without OOo's additional
types and services) from a Java application is to use the URE (see
there). I agree that this situation is far from ideal, and welcome any
contributions in this area.
-Stephan
Best regards,
Mathias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]