To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=52761


User ronyf changed the following:

                  What    |Old value                 |New value
================================================================================
                    Status|CLOSED                    |REOPENED
--------------------------------------------------------------------------------
                Resolution|INVALID                   |
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Tue Aug 16 12:30:44 -0700 
2005 -------
Hi there,

read your explanation, but *unfortunately* it does not help me resolve the issue
at all!

Cf. the subject [On "Bootstrap.defaultBootstrap_InitialComponentContext()"] in
the OOo mailing list [api-dev]. All the explanations are interesting, yet, I was
not able to get a plain UNO environment containing the singletons
"theCoreReflection" and "theTypeDescriptionManager" from Java.

Also, I could not find the method you alternatively relate to
"Bootstrap.bootstrap" in the WWW online docs. 

The DevGuide has not helped me either resolving the issue at hand (e.g. chapter
2, First Steps).

Therefore a big request: if it is possible to get those two services in a
freshly bootstraped UNO environment via Java only, could you be so kind and give
a small example? 

To ease your efforts, I have a nutshell example enclosed to this message, which
will trap in Java with a message that the juh-DLL is not found (rest please see
in the above mentioned e-mail-discussion on [dev-api]). 

Just save the following Java program as "RgfUnoAnalyzeTest3.java", compile it
with javac (I am using 1.4 for the moment) and run it. After he Java-program I
supply the trace-output, which might help you:

-------------------- cut here --------------------
import com.sun.star.comp.helper.Bootstrap;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XComponentContext;

public final class RgfUnoAnalyzeTest3 {

    public static XComponentContext defaultContext=null;

    /** Static block to initialize static fields. */
    static {
        try
        {
            // XComponentContext
ctxt0=Bootstrap.createInitialComponentContext(null) ;
            XComponentContext
ctxt0=Bootstrap.defaultBootstrap_InitialComponentContext(); // as of 
issue-resolver

            System.err.println("ctxt0="+pp(ctxt0));

            String key="/singletons/com.sun.star.reflection.theCoreReflection";
            Object tcr2=ctxt0.getValueByName(key);
            System.err.println(key+"\t=\t"+pp(tcr2));

            key="/singletons/com.sun.star.lang.theServiceManager";
            tcr2=ctxt0.getValueByName(key);
            System.err.println(key+"\t=\t"+pp(tcr2)+"\n");
        }
        catch (Exception e)
        {
            System.err.println("Exception:" + pp(e) + "has occurred!");
        }
    }

    public static void main(String[] arguments) throws Exception {

        System.out.println("In main()...");
        System.exit(0);
    }

    private RgfUnoAnalyzeTest3 () {}

    public static String pp(Object o)
    {
        if (o==null) return "<null>  <=== <=== <===";
        return "<"+o.toString()+">";
    }
}
-------------------- cut here --------------------


-------------------- cut here --------------------
Exception in thread "main" java.lang.UnsatisfiedLinkError: no juh in
java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at
com.sun.star.comp.helper.Bootstrap.defaultBootstrap_InitialComponentContext(Bootstrap.java:235)
        at
com.sun.star.comp.helper.Bootstrap.defaultBootstrap_InitialComponentContext(Bootstrap.java:203)
        at RgfUnoAnalyzeTest3.<clinit>(RgfUnoAnalyzeTest3.java:14)
-------------------- cut here --------------------

(Speculation: it seems that the Java runtime environment is not yet set up for
Java to find the juh.dll.)

Any help highly appreciated, if this issue can be solved on 1.1.4 and 1.9.*. 

Regards,

---rony


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to