I'm trying to compile my project using ant build ", but I get this error:
Unable to find tools.jar. It was expected to find it in / usr / lib / jvm / java -6-openjdk / lib / tools.jar
I was looking for tools.jar
and it is just located in /usr/lib/jdk1.7.0_01/lib/tools.jar
.
Is it possible to create a symbolic link as shown below?
ln -s / usr / lib / jdk1.7.0_01 / lib / tools.jar / usr / lib / jdk 1.7.0_01 / lib / tools.jar
Well .. actually I tried to create this symbolic link, but then I get this error:
BUILD FAILED / home / me / code / StockWatcher / build.xml: 29: java.lang.UnsupportedClassVersionError: com / sun / tools / javac / Main: Unsupported version major.minor 51.0
So, I do not know if this last error was because the symbolic link ...
Xavi
source share