try {
XMultiServiceFactory smgr_xMultiServiceFactory = Bootstrap.createDefaultRegistrayServiceFactory();
Object defreg = smgr_xMultiServiceFactory.createInstance("com.sun.star.comp.simpleregistry.SimpleRegistry");
XSimpleRegistry defreg_xSimpleRegistry = (XSimpleRegistry)UnoRuntime.queryInterface(XSimpleRegistry.class, defreg);
defreg_xSimpleRegistry.open("file:///usr/local/kr/test.reg", false, true);
ImplementationRegistration implementationRegistration = new ImplementationRegistration(smgr_xMultiServiceFactory);
implementationRegistration.registerImplementation("com.sun.star.comp.loader.JavaLoader", "/usr/local/kr/JavaUNO/jurt/unxlngi3.pro/class", defreg_xSimpleRegistry);
defreg_xSimpleRegistry.close();