2124755 - Unable to Launch Lumira Desktop due to Java Access Bridge Issue

SAP Knowledge Base Article - Public

2124755 - Unable to Launch Lumira Desktop due to Java Access Bridge Issue

Symptom

  • When launching Lumira Desktop, the following error message pops up:

    Failed to create the Java Virtual Machine
    or
    An error has occurred. See the log file...


    JavaMachine.PNG or 4-16-2015 2.31.38 PM.png

  • In Lumira Desktop log file under C:\Program Files\SAP Lumira\Desktop\configuration\, the following entries are logged:
    • !MESSAGE Application error
      !STACK 1
      java.lang.NoClassDefFoundError: javax/swing/UIManager : cannot initialize class because prior initialization attempt failed
      at javax.swing.JPanel.updateUI(JPanel.java:126)
      at javax.swing.JPanel.<init>(JPanel.java:86)
      at javax.swing.JPanel.<init>(JPanel.java:109)
      ...
      Caused by: java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.AccessBridge
      at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:808)
      at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:894)
      at javax.swing.UIManager.<clinit>(UIManager.java:377)
      ...

Environment

  • SAP Lumira Desktop, version 1.22 or 1.23
  • Windows 7 Operating System (32 or 64-bit)

Reproducing the Issue

  1. Launch Lumira Desktop
  2. Error message pops up

Cause

The Java Access Bridge is enabled in Control Panel -> Ease of Access Center -> Use a computer without a display -> Other programs installed.
4-16-2015 2.26.37 PM.png

However, Lumira comes with its own JRE environment which does not contain the Java Access Bridge libraries. Hence, the application is unable to be launched.

Resolution

  • There are three possible solutions.
    • The recommended solution would be to disable the Java Access bridge, circled in red, then reboot the computer.

4-16-2015 2.26.37 PM.png

    • If unable to disable the Java access bridge you can follow these steps to install Java Access Bridge libraries to Lumira Desktop's JRE:
      1. Download Java Access Bridge 2.0.2 (accessbridge-2_0_2-fcs-bin-b06.zip) from Oracle website: http://www.oracle.com/technetwork/articles/javase/index-jsp-136191.html
      2. Extract the zip file, and open the folder "accessbridge2_0_2"
      3. Make a copy of the following files to a separate folder

If you are using 64-bit Lumira Desktop:


access-bridge-64.jar
accessibility.properties
jaccess.jar
JavaAccessBridge-64.dll
JAWTAccessBridge-64.dll
WindowsAccessBridge-64.dll


If you are using 32-bit Lumira Desktop:

access-bridge-32.jar
accessibility.properties
jaccess.jar
JavaAccessBridge-32.dll
JAWTAccessBridge-32.dll
WindowsAccessBridge-32.dll

Now, move these files to their destinations accordingly:

 

File Destination
access-bridge-32/64.jar C:\Program Files\SAP Lumira\Desktop\jre\lib\ext
accessibility.properties C:\Program Files\SAP Lumira\Desktop\jre\lib
jaccess.jar C:\Program Files\SAP Lumira\Desktop\jre\lib\ext
JavaAccessBridge-32/64.dll C:\Program Files\SAP Lumira\Desktop\jre\bin
JAWTAccessBridge-32/64.dll C:\Program Files\SAP Lumira\Desktop\jre\bin
WindowsAccessBridge-32/64.dll
  • 64-bit: C:\Windows\SysWOW64
  • 32-bit: C:\Windows\System32

 

  • The third method is to point Lumira Desktop to use your Java Virtual Machine:
  1. Edit C:\Program Files\SAP Lumira\Desktop\SAPLumira.ini in notepad or other text editor
  2. At the very top of the file add these lines (note they should be two separate lines):

-vm

C:\Program Files\Java\jre1.8.0_31\bin

  1. The path most likely will be different depending on the install and version of Java you have.
  2. Save the file and start Lumira.

 

Important Note: On install of a patch the second and third method will be overwritten with new files and will need to be done again.

Keywords

sap, lumira, desktop, unable, failed, cannot, can't, launch, open, start, initialize, run, error, issue, problem, fault, failed, fails, failure, JVM, JRE, java, access, bridge, NoClassDefFoundError, cannot initialize class because prior initialization attempt failed, AWTError, Assistive Technology not found: com.sun.java.accessibility.AccessBridge , KBA , BI-LUM-DIS , Lumira Desktop/Discovery , Problem

Product

SAP Lumira, desktop edition 1.0