'un-detectors: unable to find an interpreter for /usr/bin/logisim ( logisim a java application )

i'm trying to run logisim in a docker container this is my Dockerfile :

FROM ubuntu:18.04
RUN apt-get update  && apt-get install -y logisim 
RUN apt-get -y install \
        ca-certificates \
        libxslt1.1 \
        libglib2.0-0 \
        x11-utils \
        libxcb-icccm4 \
        libxcb-image0 \
        libxcb-keysyms1 \
        libxcb-randr0 \
        libxcb-render-util0 \
        libxcb-shm0 \
        libxcb-xfixes0 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive \
    apt-get -y install default-jre-headless && \
    apt-get -y install default-jdk-headless && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*
  
ENV DISPLAY=:0 
ENTRYPOINT ["/usr/bin/logisim"]

my problem is when i try to lunch the software a get this error :

"run-detectors: unable to find an interpreter for /usr/bin/logisim"

i checked if logisim and java are installed and everythinks looks fine but i don't know why it can't run the app



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source