Where to get tools.jar for Java 8 JDK early release? Without it, my Java 1.8 Maven pom based projects in Netbeans will not compile.
The Java 8 early release is set in the Java Platforms setting and all the Java 8 projects that are not Maven-based will compile and run.
https://jdk8.java.net/download.html
It is not found on the downloads page, I can not find anything in their search.
Does anyone have success compiling Maven pom based projects with the Java 8 early release?
Can the old tools.jar
be used or where did you find it?
The tools.jar
file on the 1.8.0 JDK is located in jdk1.8.0/lib/tools.jar
. If it's not there, then you don't have the JDK installed correctly.
Please see the accepted answer - the tools.jar
file was omitted in a specific early access revision (jdk-8-ea-bin-b106-windows-i586-05_sep_2013.exe
).
You just need to install devel package. On RHEL family it's like this:
# yum install java-1.8.0-openjdk-devel
I had a similar problem when using Hadoop-Common-2.7.2 as a dependency. I resolved the problem by adding the following exclusions to my POM.xml
file:
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.7.2</version>
<exclusions>
<exclusion>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
</exclusion>
</exclusions>
</dependency>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With