http://bugzilla.suse.com/show_bug.cgi?id=978257
http://bugzilla.suse.com/show_bug.cgi?id=978257#c3
Pedro Monreal Gonzalez changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fstrba@suse.com
Flags| |needinfo?(fstrba@suse.com)
--- Comment #3 from Pedro Monreal Gonzalez ---
Yes, it seems really broken in Tumbleweed. It seems that the file tools.jar is
missing:
user@TW:~/ant> ant --noconfig -version
Unable to locate tools.jar. Expected to find it in
/usr/lib64/jvm/java-9-openjdk-9/lib/tools.jar
Apache Ant(TM) version 1.9.9 compiled on June 14 2017
Strace SLE12:
stat("/usr/lib64/jvm/java/lib/tools.jar", {st_mode=S_IFREG|0644,
st_size=8604676, ...}) = 0
execve("/usr/lib64/jvm/java/bin/java", ["/usr/lib64/jvm/java/bin/java",
"-classpath",
"/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/lib64/jvm/java/lib/tools.jar",
"-Dant.home=/usr/share/ant", "-Dant.library.dir=/usr/share/ant/lib",
"org.apache.tools.ant.launch.Launcher", "-cp", "", "-version"], [/* 55 vars
*/]) = 0
Strace TW:
execve("/usr/lib64/jvm/jre/bin/java", ["/usr/lib64/jvm/jre/bin/java",
"-classpath", "/etc/alternatives/jre//lib/ant-launcher.jar",
"-Dant.home=/etc/alternatives/jre/",
"-Dant.library.dir=/etc/alternatives/jre//lib",
"org.apache.tools.ant.launch.Launcher", "-cp", "", "-version"], [/* 63 vars
*/]) = 0
On SLE-12, tools.jar is shipped with java but for some reason it is not present
in TW:
user@sle12:~/ant> rpm -qf /usr/lib64/jvm/java/lib/tools.jar
java-1_8_0-openjdk-devel-1.8.0.121-20.1.x86_64
I think the solution will be to make sure that tools.jar is shipped with java
and that it is in the path. Let me ask Fridrich if this is possible.
--
You are receiving this mail because:
You are on the CC list for the bug.