Ant cannot find compiler class
------------------------------
Key: JRUBY-4856
URL: http://jira.codehaus.org/browse/JRUBY-4856
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.5.1, JRuby 1.5
Environment: Ubuntu 10.04 with packaged JDK ( OpenJDK
6b18-1.8-0ubuntu1)
Reporter: Christopher Bayliss
Assignee: Thomas E Enebo
Priority: Minor
JRuby's rake implementation can fail to import the tools.jar rendering it
unable to compile using the ant javac task. When the java executable does not
reside in the JDK's bin directory. JAVA_HOME is ignored if set. It is possible
to work around by manually adding tools.jar from the JDK's lib directory to
CLASSPATH.
>From the follow up discussion on JRuby Users:
{quote}
As Charlie says, the tools.jar is not added to the classpath. We use "ant
-diagnostics" to grab the classpath jars but tools.jar is not listed there. The
ant scripts adds it before starting up:
if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar"
fi
{quote}
NB: Fixed in patch 4ac37a by David Calavera bug filed as requested.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email