Forum: Ruby Help needed in building xruby (for java newbie)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D0338c0de4cb3c5c17300396159933d1?d=identicon&s=25 Axel Etzold (Guest)
on 2007-06-18 12:37
(Received via mailing list)
Dear all,

when trying to build xruby for Linux i586, OpenSuSE 10.2,
I get the following errors:

dhcppc1:/usr/local/xruby # export JAVA_HOME=/usr
dhcppc1:/usr/local/xruby # which javac
dhcppc1:/usr/local/xruby # javac -version
javac 1.5.0_10

dhcppc1:/usr/local/xruby # sh
Buildfile: build.xml



    [javac] Compiling 273 source files to /usr/local/xruby/build

/usr/local/xruby/build.xml:59: Unable to find a javac compiler; is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

Total time: 0 seconds

How could I tell the build script where to look for javac - if
this is the real problem here?

Thank you very much,

Best regards

B1edc6a4aa373d980b49e600923df552?d=identicon&s=25 Douglas Shearer (dougal)
on 2007-06-18 22:31
Axel Etzold wrote:

> /usr/local/xruby/build.xml:59: Unable to find a javac compiler;
> is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK

Hi Axel.

Looks like you need to add the directory containing javac to your PATH.
In teh example below I did a find to get that, then modified the path.

quicksilver:~ dougal$ sudo find / -name javac
quicksilver:~ dougal$ export PATH=/usr/bin:$PATH

Obviously this example is a little silly, as /usr/bin will always be in
your path (On OS X anyway), but on your system it may be located

In sumary..

1 - Find where javac and friends live.
2 - Add the directory to your PATH.
3 - Run your compilation.

Hope this helps.

D0338c0de4cb3c5c17300396159933d1?d=identicon&s=25 Axel Etzold (Guest)
on 2007-06-19 15:19
(Received via mailing list)
Dear Douglas,

thank you for responding.
I actually verified that javac is on my system, and
can be found by the system to compile a "Hello-World"
program in java.
So  I don't think that the $JAVA_HOME
variable is the problem here anymore, but I am a java
newbie, so I don't understand what could be wrong otherwise...

Please, Java experts,  help me again...

Best regards,


-------- Original-Nachricht --------
Datum: Tue, 19 Jun 2007 05:31:29 +0900
Von: Douglas Shearer <>
Betreff: Re: Help needed in building xruby (for java newbie)
This topic is locked and can not be replied to.