Ask Your Question
1 Cannot run program "/opt/X11/bin/xprop": error=2, No such file or directory [closed]

asked 2016-01-25 10:35:14 -0600

Gerard SAUVAGE gravatar image

updated 2016-01-26 06:28:25 -0600

mether gravatar image

Hello everybody,

I’ve recently installed Fedora 23 on my computer system, with also these following softwares :

  • NetBeans 8.0.1
  • Jdk 1.8.0_71

One of the software I’m developing uses RMI Architecture.

These errors occurs while starting the programm inside and outside Netbeans environment :

Enregistrement de l'objet avec l'url : rmi:// Cannot run program "/opt/X11/bin/xprop": error=2, No such file or directory

at java.lang.ProcessBuilder.start(
at java.lang.Runtime.exec(
at java.lang.Runtime.exec(
at java.lang.Runtime.exec(
at org.GNOME.Accessibility.AtkWrapper.<clinit>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at java.lang.Class.newInstance(
at java.awt.Toolkit.loadAssistiveTechnologies(
at java.awt.Toolkit.getDefaultToolkit(
at java.awt.Window.getToolkit(
at java.awt.Window.init(
at java.awt.Window.<init>(
at java.awt.Frame.<init>(
at java.awt.Frame.<init>(
at javax.swing.JFrame.<init>(
at applicomts011.MaClasseCalendrier.<init>(
at applicomts011.FonctionsCommunesVue.<init>(
at applicomts011.GestionDeChainesEnLectureEtEcriture.<clinit>(
at traitementcentralserveurfounisseur.InterfaceDeGestionDesLicencesImplementation.<init>
at traitementcentralserveurfounisseur.TraitementCentralServeurFounisseur.main(

Caused by: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>( at java.lang.ProcessImpl.start( at java.lang.ProcessBuilder.start( ... 22 more

Does anyone have an idea ?

Thank you for your help.


PS. The classes I used for my project with RMI Architecture are as follows :

  • TraitementCentralServeurFounisseur (Main program)
  • RMIClasseRegistre (Register)
  • RMIContexteDInvocation (Invocation Context)
  • RMIExceptionDInvocation (Invocation Exception)
  • RMIManutentionnaire (Handler)

The source code of used classes is shown as follows :

  • TraitementCentralServeurFounisseur : package traitementcentralserveurfounisseur;

import java.rmi.RemoteException; import java.util.logging.Level; import java.util.logging.Logger;

public class TraitementCentralServeurFounisseur {

public static void main(String[] args) {
    // Controle de la licence utiisateur en local avec celle existant en central 
    // squelette1 port 10011
    try {
        //final Registry registre = LocateRegistry.createRegistry(10011); 
        //InterfaceDeGestionDesLicences squelette1 = (InterfaceDeGestionDesLicences) UnicastRemoteObject.exportObject(new InterfaceDeGestionDesLicencesImplementation(), 10011);
        String url = "rmi://";
        System.out.println("Enregistrement de l'objet avec l'url : " + url);
        //registre.rebind(url, squelette1);
        new RMIClasseRegistre().enregistrer("CtrLicence", new InterfaceDeGestionDesLicencesImplementation()).publierUnNouveauPort(10011); // Ligne No 30
        System.out.println("Le serveur côté fournisseur vient d'être lancé");
    } catch (RemoteException ex) {
        Logger.getLogger(TraitementCentralServeurFounisseur.class.getName()).log(Level.SEVERE, null,ex);


  • RMIClasseRegistre : package traitementcentralserveurfounisseur;

import; import; import java.lang.reflect.Proxy; import; import; import java.util.ArrayList; import java.util.HashMap; import java.util ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Gerard SAUVAGE
close date 2016-03-22 10:02:17.480462

1 Answer

Sort by » oldest newest most voted

answered 2016-02-25 14:54:55 -0600

Looks like you're running into a bug in the Java accessibility toolkit: java-1.8.0-openjdk-accessibility. It is beta. If you don't need it, then uninstall it.

org.GNOME.Accessibility.AtkWrapper is trying to run /opt/X11/bin/xprop, probably to get info about the X Server. But that is the wrong location for xprop. If it's installed, it would not be in /opt.

edit flag offensive delete link more


A few weeks after these errors, I've known from Apper that Oracle published a new release or Java2 V8 and advised me to install it in my PC.

After having installed it with other updates, the error hasn't occured any more.

Thank you very much for your answer.


Gerard SAUVAGE gravatar imageGerard SAUVAGE ( 2016-03-22 10:01:30 -0600 )edit

Question Tools

1 follower


Asked: 2016-01-25 10:35:14 -0600

Seen: 737 times

Last updated: Feb 25 '16