Coder Social home page Coder Social logo

java not installing about deploy-code-server HOT 4 CLOSED

coder avatar coder commented on June 26, 2024
java not installing

from deploy-code-server.

Comments (4)

bpmct avatar bpmct commented on June 26, 2024

What was the error with sudo apt-get install openjdk-8-jre? I believe this is the way to install Java

from deploy-code-server.

N30Z3N avatar N30Z3N commented on June 26, 2024

What was the error with sudo apt-get install openjdk-8-jre? I believe this is the way to install Java

same error

from deploy-code-server.

bpmct avatar bpmct commented on June 26, 2024

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

from deploy-code-server.

bpmct avatar bpmct commented on June 26, 2024

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

from deploy-code-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.