Skip to content

Exception in thread “main” java.awt.AWTError: Assistive Technology not found

How to solve this error?

Exception in thread "main" java.awt.AWTError: Assistive Technology not found:
    at java.awt.Toolkit.loadAssistiveTechnologies(
    at java.awt.Toolkit.getDefaultToolkit(
    at java.awt.Window.getToolkit(
    at java.awt.Window.init(
    at java.awt.Window.(
    at java.awt.Frame.(
    at java.awt.Frame.(
    at javax.swing.JFrame.(
    at FirstJavaProject.(
    at FirstJavaProject.main(

It occurs during the execution of following program:

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class TenButtons extends JFrame{

    JButton [] btns= new JButton[10];

    public static void main(String args[]){
        new TenButtons();
    public TenButtons(){
        this.setTitle("10 Buttons");
        this.setLayout(new GridLayout(5,2));
        for(int i=0; i<btns.length; i++){
           btns[i]=new JButton("Button ");

My JDK_HOME/jre/lib/ file has the following content:

## Load the Java Access Bridge class into the JVM ##



For future reference, one of the more common causes of this exception is a missing or corrupt installation of a Java Access Bridge. In this case, the following access bridge has been defined in standard configuration file (JDK_HOME/jre/lib/

But it won’t actually be operative unless the required installation is complete. Note that the standard access bridge implementation does not come packages with the SDK. To fix your particular issue, download and install the Oracle Access Bridge by following instructions from their setup page. That should resolve the startup error occurring in your program.

User contributions licensed under: CC BY-SA
10 People found this is helpful