Thursday, February 22, 2024
 Popular · Latest · Hot · Upcoming
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:




and it does not exist in


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


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.

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

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