Thursday, February 22, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1438  / 2 Years ago, sat, february 19, 2022, 6:56:59

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.


More From » java

 Answers
5

It looks like my default install came with some weird version of Java - not the OpenJDK but even another version. I did an aptitude install to get the openjdk-7 and then everything worked fine.



I was confused because Eclipse compiled without a javac on the system, but I guess Eclipse has some tools inside that allow it to compile.


[#25042] Sunday, February 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eanda

Total Points: 439
Total Questions: 116
Total Answers: 105

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
;