Please try to briefly and clearly tell us: What you want, What you tried, and What happened.
-----------------------------------------------------------------------------------------------------------
Hi,
I m new user of the Open Office. I making application in java for writing the data using UNO.
But I m unable to find the required library files.
I have install the sdk in the /usr/lib/openoffice/sdk.
Im trying to compile the program in the example ;
package org.openoffice.example.comp;
Code: Select all
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XComponentContext;
import com.sun.star.lib.uno.helper.Factory;
import com.sun.star.lang.XSingleComponentFactory;
import com.sun.star.registry.XRegistryKey;
import com.sun.star.lib.uno.helper.WeakBase;
public final class FirstApplicationImpl extends WeakBase
implements com.sun.star.lang.XServiceInfo,
org.openoffice.example.XFirstapplication
{
private final XComponentContext m_xContext;
private static final String m_implementationName = FirstApplicationImpl.class.getName();
private static final String[] m_serviceNames = {
"org.openoffice.example.Firstapplication" };
public FirstApplicationImpl( XComponentContext context )
{
m_xContext = context;
};
public static XSingleComponentFactory __getComponentFactory( String sImplementationName ) {
XSingleComponentFactory xFactory = null;
if ( sImplementationName.equals( m_implementationName ) )
xFactory = Factory.createComponentFactory(FirstApplicationImpl.class, m_serviceNames);
return xFactory;
}
public static boolean __writeRegistryServiceInfo( XRegistryKey xRegistryKey ) {
return Factory.writeRegistryServiceInfo(m_implementationName,
m_serviceNames,
xRegistryKey);
}
Please help me to compile and run the program.
Even in the open office directory these file were not there
Please help in this regard
Thanks and Regards
OS used Ubuntu 8.x
Version of Openoffice 2.4.1