Skip to content

Unable to run java application in alpine openjdk8 container #222

Closed
@iswaryavakati

Description

@iswaryavakati

Hi,

I have a created a alpine-openjdk8-docker container, the container is up and running And i have copied and unzip my java application. when i am trying to setup my application i am getting the following error

java.io.IOException: Cannot run program "/xxx-exec": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at setup.Launcher.runSetup(Launcher.java:192)
at setup.Launcher.main(Launcher.java:37)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 2 more

I can am able to see that "./xxx-exec" file is getting extracted as a part of script.

I am able to run the application in ubuntu-openjdk8 container, But facing the above problem only in alpine-openjdk8 conatiner.

I have checked by setting JAVA_HOME path and all the possible ways i can do, But unable to resolve the problem. :-(

Do I have make any other changes?

Can anyone please help how to resolve the problem..

Thanks in Advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions