I have a java computer program that I can compile in Eclipse just fine. I want to compile it from the command line and get the message javac not found
. I figured that I just didn't have my path setup right, but then I did a locate javac
and I only get:
/usr/share/bash-completion/completions/javac
/usr/share/vim/vim74/compiler/javac.vim
/usr/share/vim/vim74/syntax/javacc.vim
and it does not exist in
/usr/lib/jvm/java-7-openjdk-amd64/bin/
In Eclipse, it looks like it is using this JDK, so I am not sure how to account for how Eclipse compiles. Am I missing something silly? Thanks.