Ask Your Question
1

java.io.IOException: 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://192.168.0.10/CtrLicence

java.io.IOException: Cannot run program "/opt/X11/bin/xprop": error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at org.GNOME.Accessibility.AtkWrapper.<clinit>(AtkWrapper.java:34)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:805)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:887)
at java.awt.Window.getToolkit(Window.java:1362)
at java.awt.Window.init(Window.java:506)
at java.awt.Window.<init>(Window.java:537)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at javax.swing.JFrame.<init>(JFrame.java:189)
at applicomts011.MaClasseCalendrier.<init>(MaClasseCalendrier.java:55)
at applicomts011.FonctionsCommunesVue.<init>(FonctionsCommunesVue.java:803)
at applicomts011.GestionDeChainesEnLectureEtEcriture.<clinit>(GestionDeChainesEnLectureEtEcriture.java:44)
at traitementcentralserveurfounisseur.InterfaceDeGestionDesLicencesImplementation.<init>InterfaceDeGestionDesLicencesImplementation.java:122)
at traitementcentralserveurfounisseur.TraitementCentralServeurFounisseur.main(TraitementCentralServeurFounisseur.java:30)

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

Does anyone have an idea ?

Thank you for your help.

Gerard SAUVAGE.

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://192.168.0.10/CtrLicence";
        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 java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.lang.reflect.Proxy; import java.net.ServerSocket; import java.net.Socket; 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
0

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

Comments

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.

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

Question Tools

1 follower

Stats

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

Seen: 737 times

Last updated: Feb 25 '16