[Solved] Geany - javac command not found

General talk about packaging procedures and packages.
Post Reply
don't panic
Posts: 11
Joined: 28. May 2010, 00:36

[Solved] Geany - javac command not found

Post 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.
Last edited by don't panic on 12. Aug 2010, 01:39, edited 1 time in total.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Geany - javac command not found

Post by thenktor »

Did you install the jdk package?
EDIT: After installing it please log out and in again.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
don't panic
Posts: 11
Joined: 28. May 2010, 00:36

[Solved] Geany - javac command not found

Post by don't panic »

Thanks, Thenktor. Spot on!

Cheers.
User avatar
lmello
Posts: 218
Joined: 4. Aug 2010, 17:38
Location: Brazil
Contact:

Re: [Solved] Geany - javac command not found

Post 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:
Post Reply