# Oci errorFile not found in $PATH

**URL:** <https://forums.docker.com/t/oci-errorfile-not-found-in-path/41995>\
**Category:** Docker Desktop\
**Created:** [November 26, 2017, 3:31pm UTC](https://forums.docker.com/t/oci-errorfile-not-found-in-path/41995 "2017-11-26T15:31:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xharos](https://avatars.discourse-cdn.com/v4/letter/x/ea666f/32.png) [@xharos](https://forums.docker.com/u/xharos)\
**Post date:** [November 26, 2017, 3:31pm UTC](https://forums.docker.com/t/oci-errorfile-not-found-in-path/41995/1 "2017-11-26T15:31:37Z")

</div>

Hi, i’ve been using docker on linux for a month without any problem.  
I’ve tried today the windows-toolbox version and I keep facing this error when starting a container with a java programm.

> starting container process caused “exec: "java”: executable file not found in $PATH"

I’ve seen on stackoverflow that the problem is maybe the default emulated shell, but it’s not working when using /bin/sh -c

Very simple Dockerfile :

`FROM openjdk:8-alpine`  
`MAINTAINER "devxharos@gmail.com"`  
`ADD build/libs/test.jar /app/test.jar`  
`CMD ["java", "-jar", "/app/test.jar"]`

And a docker-compose.yml file

> test:  
> build: .  
> container\_name: ${COMPOSE\_PROJECT\_NAME}\_test

If somebody have an idea, thanks a lots in advance 🙂

---

<div class="post-metadata">

**Author:** ![sdetweil](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@sdetweil](https://forums.docker.com/u/sdetweil)\
**Post date:** [November 28, 2017, 1:01pm UTC](https://forums.docker.com/t/oci-errorfile-not-found-in-path/41995/2 "2017-11-28T13:01:45Z")

</div>

well, not exacly, but when the container started, it couldn’t find java

so, start your container manually with -it and from its command prompt look at the environment to see what is not setup correctly
