reference to java class
I'm looking to convert libreoffice java example to cfm but j don't undestand how reference to "XComponentLoader.class" before create it
this row are ok
<cfset OOB = createObject("java","com.sun.star.comp.helper.Bootstrap")/>
<cfset xContext = OOB.bootstrap()>
<cfset xMCF = xContext.getServiceManager()>
<cfset desktop = xMCF.createInstanceWithContext("com.sun.star.frame.Desktop", xContext)>
<cfset UnoRuntime = createObject("java","com.sun.star.uno.UnoRuntime")/>
this is then row to convert
XComponentLoader xCompLoader = UnoRuntime.queryInterface(XComponentLoader.class, xDesktop);
I try:
1)
<cfset xComponentLoader = UnoRuntime.queryInterface(XComponentLoader.class, desktop)>
2)
<cfset myloader = createObject("java","com.sun.star.frame.XComponentLoader")/>
<cfset xComponentLoader = UnoRuntime.queryInterface(myloader.class, desktop)>
3)
<cfobject type="Java" class="com.sun.star.frame.XComponentLoader.class" name="myloader" action="create">
<cfset xComponentLoader = UnoRuntime.queryInterface(myloader, desktop)>
but no one work
any ideas or j've to pass to cfx ?
