Page 1 of 1

[Solved] Geany - javac command not found

Posted: 11. Aug 2010, 16:27
by don't panic
Hi,
I tried a simple "hello world" java app in Geany but can't get out of the starting gate. When compiling I get the error in my thread title:

Code: Select all

/bin/sh: javac: command not found
So, it seems the shell can't find the path to the java compiler (?). I'm guessing this is something that can be added to my environment variables but I'm a little hazy on this. The last time I did this I was working with Windows. If someone has a simple fix I would be appreciative - otherwise please don't spend a lot of time here as I'm sure I'll find something on Google sooner or later.

Cheers.

Re: Geany - javac command not found

Posted: 11. Aug 2010, 17:25
by thenktor
Did you install the jdk package?
EDIT: After installing it please log out and in again.

[Solved] Geany - javac command not found

Posted: 12. Aug 2010, 01:38
by don't panic
Thanks, Thenktor. Spot on!

Cheers.

Re: [Solved] Geany - javac command not found

Posted: 15. Aug 2010, 00:27
by lmello
You may tell Geany to run "gcj -C" instead of "javac". Just install gcc-java, and you'll save 100+ Mb of disk space.

:geek: