-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java not installing #62
Comments
What was the error with |
same error |
Hi - sorry for the late response. I have not been active on this repo. You can install Java in your project by adding this to the Dockerfile: USER root
# Install "software-properties-common" (for the "add-apt-repository")
RUN apt-get update && apt-get install -y \
software-properties-common
## Install Oracle's JDK
# add oracle jdk repository
RUN add-apt-repository ppa:ts.sch.gr/ppa \
# accept oracle license
&& echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& apt-get update \
# install oracle jdk 8 and make it default
&& apt-get -y install oracle-java8-installer \
&& apt-get -y install oracle-java8-set-default \
# clean up
&& apt-get clean all \
&& rm -rf /var/lib/apt/lists/*
USER coder |
Ah, it looks like Java 8 is not supported on Debian 11. You can, however, use: RUN sudo apt-get update && sudo apt-get install -y openjdk-11-jre see this for workarounds: https://www.itzgeek.com/how-tos/linux/debian/how-to-install-java-jdk-on-debian-11.html |
I also tried sudo apt-get install openjdk-8-jre which is mainly i want even that getting error
The text was updated successfully, but these errors were encountered: