Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to get the tools.jar to use with the Java 8 jdk early release

Tags:

java

java-8

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?

like image 797
The Coordinator Avatar asked Nov 01 '13 06:11

The Coordinator


3 Answers

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).

like image 179
Petesh Avatar answered Oct 23 '22 00:10

Petesh


You just need to install devel package. On RHEL family it's like this:

# yum install java-1.8.0-openjdk-devel
like image 28
mironq Avatar answered Oct 22 '22 22:10

mironq


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>
like image 6
Praveen Kumar K S Avatar answered Oct 22 '22 22:10

Praveen Kumar K S