From 3a1c0c61dcd71d189849e9b8d54e8c17ede4839c Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien
- java com.sun.star.tools.RegComp applicat.rdb register - file:///e:/demos/InstanceInspector.jar com.sun.star.loader.Java2 -- - In order to examine the results of the registration use the regview.exe - tool. For example: -
- regview nameOfDatatbase /SERVICES/serviceName - regview nameOfDataBase /IMPLEMENTATIONS/implementationName -- @see Registering Java Components - */ -public class RegComp { - - static public void main(String args[]) throws Exception { - if(args.length != 0) { - Object serviceManager = RegistryServiceFactory.create(args[0]); - XMultiServiceFactory serviceManager_xMultiServiceFactory = (XMultiServiceFactory)UnoRuntime.queryInterface(XMultiServiceFactory.class, serviceManager); - - Object implementationRegistration = serviceManager_xMultiServiceFactory.createInstance("com.sun.star.registry.ImplementationRegistration"); - XImplementationRegistration implementationRegistration_xImplementationRegistration = - (XImplementationRegistration)UnoRuntime.queryInterface(XImplementationRegistration.class, implementationRegistration); - - if(args[1].equals("register")) { - System.err.println("------ registering " + args[2] + " with " + args[3] + " in " + args[0]); - - implementationRegistration_xImplementationRegistration.registerImplementation(args[3], args[2], null); - } - else { - System.err.println("------ revoke " + args[2] + " of " + args[0]); - - implementationRegistration_xImplementationRegistration.revokeImplementation(args[2], null); - } - } - else { - System.err.println("usage:
UnoApp
is the generic UNO application for java.
- * It removes the need for writing UNO applications in Java. That is, it instantiates a service and runs it if it implements
- * com.sun.star.lang.XMain
. - * @return a freshly boostrapped service manager - * @see com.sun.star.lang.ServiceManager - */ - static public XMultiServiceFactory createSimpleServiceManager() throws Exception { - JavaLoader loader = new JavaLoader(); - - XImplementationLoader xImpLoader = (XImplementationLoader)UnoRuntime.queryInterface(XImplementationLoader.class, loader); - - // Get the factory for the ServiceManager - Object loaderobj = xImpLoader.activate("com.sun.star.comp.servicemanager.ServiceManager", null, null, null); - - // Ensure that we have got a factory - XSingleServiceFactory xManagerFac = (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class, loaderobj); - // Create an instance of the ServiceManager - XMultiServiceFactory xMultiFac = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, - xManagerFac.createInstance()); - - // set the ServiceManager at the JavaLoader with the XInitialization interface - XInitialization xInit = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, xImpLoader); - Object[] iniargs = { xMultiFac }; - xInit.initialize( iniargs ); - - - // now use the XSet interface at the ServiceManager to add the factory of the loader - XSet xSet = (XSet) UnoRuntime.queryInterface(XSet.class, xMultiFac); - - // Get the factory of the loader - XSingleServiceFactory xSingleServiceFactory = (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class, - xImpLoader.activate("com.sun.star.comp.loader.JavaLoader", null, null, null)); - - // add the javaloader - xSet.insert(xSingleServiceFactory); - - // add the service manager - xSet.insert(xManagerFac); - - // Get the factory of the URLResolver - xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class, - xImpLoader.activate("com.sun.star.comp.urlresolver.UrlResolver", null, null, null)); - xSet.insert(xSingleServiceFactory); - - // add the bridgefactory - xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class, - xImpLoader.activate("com.sun.star.comp.bridgefactory.BridgeFactory", null, null, null)); - xSet.insert(xSingleServiceFactory); - - // add the connector - xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class, - xImpLoader.activate("com.sun.star.comp.connections.Connector", null, null, null)); - xSet.insert(xSingleServiceFactory); - - // add the acceptor - xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class, - xImpLoader.activate("com.sun.star.comp.connections.Acceptor", null, null, null)); - xSet.insert(xSingleServiceFactory); - - return xMultiFac; - } - - - static class DelegatorSingleServiceFactory implements XSingleServiceFactory, XServiceInfo { - XMultiServiceFactory _xMultiServiceFactory; - String _serviceName; - - DelegatorSingleServiceFactory(XMultiServiceFactory xMultiServiceFactory, String serviceName) { - _xMultiServiceFactory = xMultiServiceFactory; - _serviceName = serviceName; - } - - public Object createInstance( ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { - return _xMultiServiceFactory.createInstance(_serviceName); - } - public Object createInstanceWithArguments( /*IN*/java.lang.Object[] aArguments ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { - return _xMultiServiceFactory.createInstanceWithArguments(_serviceName, aArguments); - } - - // Methods - public String getImplementationName( ) throws com.sun.star.uno.RuntimeException { - return getClass().getName() + _serviceName; - } - - public boolean supportsService( /*IN*/String ServiceName ) throws com.sun.star.uno.RuntimeException { - return _serviceName.equals(ServiceName); - } - - public String[] getSupportedServiceNames( ) throws com.sun.star.uno.RuntimeException { - return new String[]{_serviceName}; - } - } - - /** - * An XInstanceProvider implementation, which allows simple object export. - *
- * @see com.sun.star.bridge.XBridgeFactory
- * @see com.sun.star.bridge.XInstanceProvider
- */
- static class InstanceProvider implements XInstanceProvider {
- private String _name;
- private Object _object;
-
- InstanceProvider(String name, Object object) {
- _name = name;
- _object = object;
- }
-
- public Object getInstance(String sInstanceName) throws com.sun.star.container.NoSuchElementException, com.sun.star.uno.RuntimeException {
- Object object = null;
-
- if(_name.equals("__delegate")) { // ?is this a hack?
- XMultiServiceFactory xMultiServiceFactory = (XMultiServiceFactory)UnoRuntime.queryInterface(XMultiServiceFactory.class, _object);
-
- String services[] = xMultiServiceFactory.getAvailableServiceNames();
- boolean hasService = false;
-
- for(int i = 0; i < services.length && !hasService; ++ i)
- hasService = services[i].equals(sInstanceName);
-
- if(hasService) {
- object = new DelegatorSingleServiceFactory(xMultiServiceFactory, sInstanceName);
- }
- }
- else
- if(sInstanceName.equals(_name))
- object = _object;
-
- return object;
- }
- }
-
-
- /**
- * Exports the given object via the given url while using
- * the xMultiServiceFactory
.
- *
- * @param xMultiServiceFactory the service manager to use - * @param dcp a uno url, which describes how to export - * @param object the object to export - * @see com.sun.star.bridge.XBridge - * @see com.sun.star.bridge.XBridgeFactory - * @see com.sun.star.bridge.XInstanceProvider - */ - static public void export(XMultiServiceFactory xMultiServiceFactory, String dcp, Object object, boolean singleAccept) throws Exception { - String conDcp = null; - String protDcp = null; - String rootOid = null; - - // split the description into tokens - int index = dcp.indexOf(':'); - String url = dcp.substring(0, index).trim(); - dcp = dcp.substring(index + 1).trim(); - - index = dcp.indexOf(';'); - conDcp = dcp.substring(0, index).trim(); - dcp = dcp.substring(index + 1).trim(); - - index = dcp.indexOf(';'); - protDcp = dcp.substring(0, index).trim(); - dcp = dcp.substring(index + 1).trim(); - - rootOid = dcp.trim().trim(); - - UnoAppHolder holder = new UnoAppHolder(); - holder.acquire(); - try { - // get an acceptor - XAcceptor xAcceptor = (XAcceptor)UnoRuntime.queryInterface(XAcceptor.class, - xMultiServiceFactory.createInstance("com.sun.star.connection.Acceptor")); - - // get a bridgefactory - XBridgeFactory xBridgeFactory = (XBridgeFactory)UnoRuntime.queryInterface(XBridgeFactory.class, - xMultiServiceFactory.createInstance("com.sun.star.bridge.BridgeFactory")); - - int connect_count = 0; - - do { - XConnection xConnection = null; - try { - System.err.println("waiting for connect [" + conDcp + "#" + connect_count + "]..."); - xConnection = xAcceptor.accept(conDcp); - if(xConnection == null) - break; - - XConnectionBroadcaster broadcaster = (XConnectionBroadcaster) - UnoRuntime.queryInterface( - XConnectionBroadcaster.class, xConnection ); - if( broadcaster != null ) - broadcaster.addStreamListener( - new ConnectionListener( holder ) ); - - // create the bridge - XBridge xBridge = xBridgeFactory.createBridge(conDcp + ";" + protDcp + "#" + (connect_count ++), protDcp, xConnection, new InstanceProvider(rootOid, object)); - } - catch(com.sun.star.uno.Exception exception) { - System.err.println( "UnoApp acceptor: exeception occurred - " + exception); - if(xConnection != null) - xConnection.close(); - } - } - while(!singleAccept); - } - catch(com.sun.star.uno.Exception exception) { - System.err.println("UnoApp acceptor: exeception occurred - " + exception); - } - finally - { - holder.release(); - } - } - - - /** - * Parses the given string a makes words of according to the following rules: - * - words embraced by " are recognized as one word - * - charachters preceded by \ are quoted (e.g. " or spaces) - *
- * @return an array of words
- * @param string the string to parse
- */
- static String []parseString(String string) {
- Vector vector = new Vector();
-
- boolean inString = false;
- boolean quote = false;
- String word = "";
- int i = 0;
- while(i < string.length()) {
- if(string.charAt(i) == '\"' && !quote) {
- inString = !inString;
- }
- else if(string.charAt(i) == '\\' && !quote) {
- quote = true;
- }
- else if(Character.isSpace(string.charAt(i)) && !quote && !inString) {
- if(word.length() > 0) {
- vector.addElement(word);
- word = "";
- }
- }
- else {
- word += string.charAt(i);
- quote = false;
- }
-
- ++ i;
- }
-
- vector.addElement(word);
-
- String args[] = new String[vector.size()];
- for(i = 0; i < args.length; ++ i)
- args[i] = (String)vector.elementAt(i);
-
- return args;
- }
-
- /**
- * Takes a String
array and concatenates the words
- * to one string.
- *
- * @return the concatenated string
- * @param args the words to concatenate
- */
- static String mergeString(String args[]) {
- String string = "";
-
- for(int i = 0; i < args.length; ++ i)
- string += " " + args[i];
-
- return string;
- }
-
- /**
- * This is the base class for options for UnoApp
.
- * Every option has to be derived from this class and has to implement
- * the set
method, which is called while parsing the arguments.
- *
- * Options which create the result object should also overwrite the - * create method. - */ - static abstract class Option { - String _key; - String _help; - - /** - * Constructor, which has to be called with option key (e.g. -l) - * and a description of the option. - *
- * @param key the key of this option
- * @param help a description of the option, which is printed when calling -h
- */
- protected Option(String key, String help) {
- _key = key;
- _help = help;
- }
-
- /**
- * set
is called while parsing the arguments.
- *
- * @param compContext the compContext
to use for this option
- * @param args an String
array with the arguments
- * @param index the index of the current argument
- */
- abstract void set(CompContext compContext, String args[], int index[]) throws Exception;
-
- /**
- * Create is called while trying to get the result object.
- *
- * @param context the context for this create, should have been set by set
- * @param xMultiServiceFactory the service manager to use
- * @param args the args for the object instantiation
- */
- Object create(CompContext compContext) throws Exception {
- throw new Exception("not implemented");
- }
- }
-
- /**
- * The result of applying this option is an instance of
- * the named service.
- */
- static class Service_Option extends Option {
- static final String __key = "-s";
- static final String __help = "the service to instantiate";
-
- Service_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) throws Exception {
- String serviceName = args[index[0] ++];
-
- compContext._context = serviceName;
- compContext._creator = this;
- }
-
- Object create(CompContext compContext) throws Exception {
- Object object = null;
-
- if(compContext._args != null && compContext._args.length != 0)
- object = compContext._xMultiServiceFactory.createInstanceWithArguments((String)compContext._context, compContext._args);
-
- else
- object = compContext._xMultiServiceFactory.createInstance((String)compContext._context);
-
- return object;
- }
- }
-
- /**
- * The result of applying this option is a registry
- * servicemanager. This option takes the rdb file name
- * as a paramter.
- */
- static class Registry_Option extends Option {
- static final String __key = "-r";
- static final String __help = "create a XMultiServiceFactory out of the registry file (e.g. -r applicat.rdb)";
-
- Registry_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) throws Exception {
- compContext._context = RegistryServiceFactory.create(args[index[0] ++]);
- compContext._creator = this;
-
- if(DEBUG) System.err.println("##### " + getClass().getName() + " - got RegistryServiceFactory:" + compContext._context);
- }
-
- Object create(CompContext compContext) throws Exception {
- return compContext._context;
- }
-
- }
-
- /**
- * The result of applying this option is a registry
- * servicemanager. This option takes two rdb file names
- * as a paramters.
- */
- static class TwoRegistry_Option extends Option {
- static final String __key = "-tr";
- static final String __help = "create a XMultiServiceFactory out of two registry files (e.g. -tr applicat.rdb user.rdb";
-
- TwoRegistry_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) throws Exception {
- compContext._context = RegistryServiceFactory.create(args[index[0] ++], args[index[0] ++]);
- compContext._creator = this;
-
- if(DEBUG) System.err.println("##### " + getClass().getName() + " - got RegistryServiceFactory:" + compContext._context);
- }
-
- Object create(CompContext compContext) throws Exception {
- return compContext._context;
- }
-
- }
-
- /**
- * The result of applying this option is the import
- * of the described object.
- */
- static class Import_Option extends Option {
- static final String __key = "-u";
- static final String __help = "import an object via the given url";
-
- Import_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) throws Exception {
- compContext._context = args[index[0] ++];
- compContext._uno_url = (String)compContext._context;
- compContext._creator = this;
- }
-
- Object create(CompContext compContext) throws Exception {
- compContext._uno_url = null;
-
- XUnoUrlResolver urlResolver = (XUnoUrlResolver)UnoRuntime.queryInterface(XUnoUrlResolver.class,
- compContext._xMultiServiceFactory.createInstance("com.sun.star.bridge.UnoUrlResolver"));
-
- return urlResolver.resolve((String)compContext._context);
- }
- }
-
- /**
- * The result of applying this option is a multiservicefactory
- * for the given component.
- */
- static class Component_Option extends Option {
- static final String __key = "-c";
- static final String __help = "creates a XMultiServiceFactory out of the given component (via url or as classname)";
-
- Component_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) throws Exception {
- if(DEBUG) System.err.println("##### " + getClass().getName() + ".set:" + args[0]);
-
- compContext._context = args[index[0] ++];
- compContext._creator = this;
- }
-
- Object create(CompContext compContext) throws Exception {
- String componentName = (String)compContext._context;
-
- XImplementationLoader loader = (XImplementationLoader)UnoRuntime.queryInterface(XImplementationLoader.class,
- compContext._xMultiServiceFactory.createInstance("com.sun.star.loader.Java"));
-
- Object serviceManager = compContext._xMultiServiceFactory.createInstance("com.sun.star.lang.ServiceManager");
- XSet serviceManager_xSet = (XSet)UnoRuntime.queryInterface(XSet.class, serviceManager);
-
- XRegistryKey xRegistryKey = new RegistryKey("ROOT");
-
- loader.writeRegistryInfo(xRegistryKey, null, componentName);
-
- String keys[] = xRegistryKey.getKeyNames();
- for(int j = 0; j < keys.length; ++ j) {
- String implName = keys[j].substring(1);
- implName = implName.substring(0, implName.length() - "/UNO/SERVICES".length());
-
- Object factory = loader.activate(implName, null, componentName, xRegistryKey);
- XSingleServiceFactory xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
- factory);
-
- if (xSingleServiceFactory == null)
- throw new com.sun.star.loader.CannotActivateFactoryException("Can not get factory for " + implName);
-
- serviceManager_xSet.insert(xSingleServiceFactory);
- }
-
- return serviceManager;
- }
- }
-
- /**
- * The -smgr option takes the given objects as XSingleServiceFactory
- * or as XMultiServiceFactory
and inserts them into the given service manager.
- */
- static class ServiceManager_Option extends Option {
- static final String __key = "-smgr";
- static final String __help = "\"object[,object]*\" merges the given factorys into the result object factory";
-
- ServiceManager_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) throws Exception {
- String arg = args[index[0] ++];
-
- if(DEBUG) System.err.println("##### " + getClass().getName() + ".set:" + arg);
-
- Vector comps = new Vector();
- int idx = arg.indexOf(',');
- while(idx != -1) {
- comps.addElement(arg.substring(0, idx));
-
- arg = arg.substring(idx + 1);
-
- idx = arg.indexOf(',');
- }
- comps.addElement(arg);
-
- // now use the XSet interface at the ServiceManager to add the factory of the loader
- XSet xSet = (XSet) UnoRuntime.queryInterface(XSet.class, compContext._xMultiServiceFactory);
-
- for(int i = 0; i < comps.size(); ++ i) {
- Object object = new CompContext((String)comps.elementAt(i)).getObject();
-
- XSingleServiceFactory xSingleServiceFactory = (XSingleServiceFactory)UnoRuntime.queryInterface(XSingleServiceFactory.class,
- object);
- if(xSingleServiceFactory == null) {
- XMultiServiceFactory xMultiServiceFactory = (XMultiServiceFactory)UnoRuntime.queryInterface(XMultiServiceFactory.class,
- object);
-
- if(xMultiServiceFactory != null) {
- String services[] = xMultiServiceFactory.getAvailableServiceNames();
-
- for(int j = 0; j < services.length; ++ j)
- xSet.insert(new DelegatorSingleServiceFactory(xMultiServiceFactory, services[j]));
- }
- else
- System.err.println("warning! -- " + object + " is neither XSingleServiceFactory nor XMultiServiceFactory");
- }
- else
- xSet.insert(xSingleServiceFactory);
- }
- }
- }
-
- /**
- * The Args option puts the given objects into arg array,
- * which is used when instantiating the result object.
- */
- static class Args_Option extends Option {
- static final String __key = "--";
- static final String __help = "objects given to this option are passed via XInitialization to the result object";
-
- Args_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) throws Exception {
- Object obj_args[] = new Object[args.length - index[0]];
-
- int i = 0;
- while(index[0] < args.length)
- obj_args[i ++] = new CompContext(args[index[0] ++]).getObject();
-
- compContext._args = obj_args;
- }
- }
-
- /**
- * If the object is to be exported, only export it once
- */
- static class SingleAccept_Option extends Option {
- static final String __key = "--singleaccept";
- static final String __help = "if the object is to be exported, only export it once";
-
- SingleAccept_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) throws Exception {
- compContext._singleAccept = true;
- }
- }
-
- /**
- * The help option prints a help message.
- */
- static class Help_Option extends Option {
- static final String __key = "-h";
- static final String __help = "gives this help";
-
- Help_Option() {
- super(__key, __help);
- }
-
- void set(CompContext compContext, String args[], int index[]) {
- System.out.println("usage: UnoApp [option]*");
-
- Enumeration elements = __options.elements();
- while(elements.hasMoreElements()) {
- Option option = (Option)elements.nextElement();
- System.out.println("\t" + option._key + "\t" + option._help);
- }
- }
- }
-
-
- // All options have to be inserted into this table
- static final Hashtable __options = new Hashtable();
- static {
- __options.put(Service_Option.__key, new Service_Option());
- __options.put(Import_Option.__key, new Import_Option());
- __options.put(Registry_Option.__key, new Registry_Option());
- __options.put(TwoRegistry_Option.__key, new TwoRegistry_Option());
- __options.put(ServiceManager_Option.__key, new ServiceManager_Option());
- __options.put(Args_Option.__key, new Args_Option());
- __options.put(Component_Option.__key, new Component_Option());
- __options.put(SingleAccept_Option.__key, new SingleAccept_Option());
- __options.put(Help_Option.__key, new Help_Option());
- };
-
-
- /**
- * The is the main method, which is called from java.
- */
- static public void main(String args[]) throws Exception {
- if(args.length == 0)
- args = new String[]{"-h"};
-
- // We have to do this, cause the jdb under solaris does not allow to pass
- // arguments with included spaces.
- String arg = mergeString(args);
-
- CompContext compContext = new CompContext(arg);
-
- Object object = compContext.getObject();
-
- if(compContext._uno_url != null) // see, if we have to export the object
- export(compContext._xMultiServiceFactory, compContext._uno_url, object, compContext._singleAccept);
- else {
- XMain xMain = (XMain)UnoRuntime.queryInterface(XMain.class, object);
-
- if(xMain != null)
- xMain.run(new String[0]);
-
- System.out.println("result: " + object);
- }
- }
-
-
- static class CompContext {
- /* The membders of an CompContext */
- Option _creator = null; // the creator gets set by option which provide objects
- Object _context = null; // the context for object creation
- Object _args[] = null; // the args for object creation
- String _uno_url = null; // the url for object export
- XMultiServiceFactory _xMultiServiceFactory; // the service manager for object creation
- boolean _singleAccept = false; // if export object, only export once
-
- /**
- * Initializes CompContext
.
- * If string only is one word and the word does not start with "-"
- * set the context with string.
- *
- * @param string the arguments
- */
- CompContext(String string) throws Exception {
- _xMultiServiceFactory = createSimpleServiceManager();
-
- String args[] = parseString(string);
-
- if(args.length == 1 && args[0].charAt(0) != '-')
- _context = string;
- else
- parseArgs(args);
- }
-
- /**
- * Initializes CompContext
.
- * If args contains only one word and the word does not start with "-"
- * set the context with string.
- *
- * @param string the arguments - */ - CompContext(String args[]) throws Exception { - _xMultiServiceFactory = createSimpleServiceManager(); - - if(args.length == 1 && args[0].charAt(0) != '-') - _context = args[0]; - else - parseArgs(args); - } - - /** - * Interprets the args as a sequence of option names - * followed by option parameters. - *
- * @param args the arguments
- */
- protected void parseArgs(String args[]) throws Exception {
- int i[] = new int[1];
- while(i[0] < args.length) {
- Option option = (Option)__options.get(args[i[0]]);
- if(option == null) {
- System.err.println("unknown option:" + args[i[0]]);
- return;
- }
-
- ++ i[0];
-
- option.set(this, args, i);
- }
- }
-
- /**
- * Gets the object described by this compContext
.
- * If no creator is set, returns the context as object.
- *
- * @return the object
- */
- Object getObject () throws Exception {
- Object object = null;
-
- if(_creator == null)
- object = _context;
-
- else
- object = _creator.create(this);
-
- return object;
- }
- }
-
-
- /** Calls the main method. The parameter of the applet are passed as arguments
- to the main method.
- */
- public void init() {
- System.err.println("##### " + getClass().getName() + ".init");
-
- try {
- String args = getParameter("params");
-
- main(new String[]{args});
- }
- catch(Exception exception) {
- System.err.println("error - " + exception);
- }
- }
-
- public void start() {
- System.err.println("##### " + getClass().getName() + ".start");
- }
-
- public void stop() {
- System.err.println("##### " + getClass().getName() + ".stop");
- }
-
- public void destroy() {
- System.err.println("##### " + getClass().getName() + ".init");
- }
-}
-
diff --git a/jut/com/sun/star/tools/uno/makefile.mk b/jut/com/sun/star/tools/uno/makefile.mk
deleted file mode 100644
index 44dfe7afffd4..000000000000
--- a/jut/com/sun/star/tools/uno/makefile.mk
+++ /dev/null
@@ -1,53 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2008 by Sun Microsystems, Inc.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# $RCSfile: makefile.mk,v $
-#
-# $Revision: 1.8 $
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# Used when parsing (part of) a URI fails for syntactical reasons.