configure: error: "A rhino jar was not found in /usr/share/java as either rhino.jar or js.jar."
Andrew Hughes
gnu.andrew at redhat.com
Thu Apr 28 15:59:47 UTC 2016
----- Original Message -----
> On Thu, 28 Apr 2016, YuGiOhJCJ Mailing-List wrote:
>
> > Hello,
> >
> > I have problem building IcedTea 2.6.4 on Slackware 14.1 with the gcj 5.3.0
> > and ecj 4.9:
>
> ...
>
> > checking whether to include Javascript support via Rhino... not found
> > configure: error: "A rhino jar was not found in /usr/share/java as either
> > rhino.jar or js.jar."
>
> The first question that comes to mind is: did you actually install a
> rhino jar file prior to compiling openjdk with icedtea?
>
> You are also 2 security releases behind with icedtea.
>
> > It seems that some packages/classes are missing in my JDK.
> >
> > Any idea why?
> >
> > Thank you.
> > Best regards.
> >
> > That's how I built gcj 5.3.0:
> > $ ../configure --prefix=/usr --enable-languages=c,c++,java
> > --enable-java-home
> > $ make
> >
> > That's how I built ecj 4.9:
> > $ gcj -o ecj ../ecj.jar --main=org.eclipse.jdt.internal.compiler.batch.Main
>
>
> I have tried running "BOOTSTRAP=YES ./openjdk7.SlackBuild" i.e.
> bootstrapping openjdk7 using gcj and using the sources from this
> location: http://www.slackware.com/~alien/slackbuilds/openjdk7/ and
> after having installed apache-ant and rhino.
>
> This is on Slackware 14.2 RC2 which already comes equipped with the
> full GCC 5.3.0 compiler suite.
>
> This resulted in an error-free compilation and a Slackware package for
> openjdk7 7u101_b00.
>
> So yes, probably you ave an incomplete GCC 5.3.0 suite and/or missing
> rhino jar file.
>
> Cheers, Eric
>
> --
> Eric Hameleers <alien at slackware.com>
> Home: http://alien.slackbook.org/blog/
>
You can disable the Rhino requirement by passing --without-rhino to
configure, though this will mean you don't have a javax.script implementation
in the resulting JDK.
However, as I said twice already when you asked about this on the bug
database, it would be far more productive to just use the packages
Eric does a great job of providing, if you're having all this trouble
compiling from source.
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2929#c3
Thanks,
--
Andrew :)
Senior Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
PGP Key: ed25519/35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04 C5A0 CFDA 0F9B 3596 4222
More information about the distro-pkg-dev
mailing list