Skip to content
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

bash: javac: command not found #30

Closed
wangyujingGH opened this issue Jul 25, 2016 · 2 comments
Closed

bash: javac: command not found #30

wangyujingGH opened this issue Jul 25, 2016 · 2 comments

Comments

@wangyujingGH
Copy link

According the steps to build the java image, then docker run -it [name] javac, "docker: Error response from daemon: Container command 'javac' not found or does not exist..", what's wrong?

@Richard-Mathie
Copy link

update-alternatives --set javac $JAVA_HOME/bin/javac

@wangyujingGH
Copy link
Author

'update-alternatives --set javac $JAVA_HOME/bin/javac' doesn't work.
According others resource, 'sudo apt-get install openjdk-7-jre' only installs the Java Runtime Environment, which contains the implemetion of 'java' command but not the 'javac'.
So running 'sudo apt-get install openjdk-7-jdk' installs the Java Development Environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants