# NoAwtPath-2007-03-26-2143-LoadError.txt   UTF-8           dh:2007-03-26
#
# This result from Odmclicker came immediately on the first click of
# OdmClicker.  There was an exception at once.  We failed in the Static
# initialization of OdmJniBind and never got to odmjni100 it seems.
#
# The following static initialization has failed:
#
#     static
#
#        {   /* Static initialization of this class specifies
#               how to find awt.dll and also load our only DLL. */
#
#            System.setProperty("java.library.path",
#                               System.getProperty("java.home")
#                                  + System.getProperty("file.separator")
#                                  + "bin"
#                                  + System.getProperty("path.separator")
#                                  + System.getProperty("java.library.path")
#                                  );
#
#            System.loadLibrary("awt");
#
#            System.loadLibrary("odmjni100");
#
#            } /* static initialization */
#
# Without the System.loadLibrary("awt") the DLL load fails at some point,
# and it is not clear if it is when odmjni100 is loaded or the code to
# find the HWND is executed.  I can check that with a Check04 command-line
# program.

21:41:17.82 C:\MyProjects\java\ODMdev\info\odma\odmjni100\test\CheckSwing> RunSwingApp.bat OdmClicker
**   RunSwingApp.bat 0.00 PERFORMING OdmClicker SWING APPLICATION
*    OdmJava.bat 0.02 ESTABLISH JAVA ENVIRONMENT FOR ODMJNI
         Using the Java SDK installed at C:\Program Files\Java\jdk1.5.0_09
         Using package class path at C:\MyProjects\java\ODMdev
         and default package path info\odma\odmjni100

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Native Library C:\Program Files\Java\jdk1.5.0_09\jre\bin\awt.dll already loaded in another classloader
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1716)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:993)
        at info.odma.odmjni100.OdmJniBind.<clinit>(OdmJniBind.java:250)
        at OdmClicker.actionPerformed(OdmClicker.java:109)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:5488)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1778)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

21:43:47.95 C:\MyProjects\java\ODMdev\info\odma\odmjni100\test\CheckSwing>

# $Header: /ODMdev/info/odma/odmjni100/test/Deploy05/NoAwtPath-2007-03-26-2143-LoadError.txt 1     07-03-26 22:05 Orcmid $

#         *** end of NoAwtPath-2007-03-26-2143-LoadError.txt ***
