System.setProperty("java.library.path","/usr/lib/openoffice/basis3.1/program:/usr/lib/ure/lib/");
System.out.println("java.library.path:"+ System.getProperty("java.library.path"));
System.out.println("alegria 22");
OfficeConnection officeConnection = new LocalOfficeConnection2();
System.out.println("alegria 23");
try {
officeConnection.setUnoUrl(URI);
aBean = new OOoBean2(officeConnection);
System.out.println("connection test: " + aBean.isOOoConnected());
// setting some UI preferences