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

Where to get tools.jar for Java 8 jdk early release? Without this, my Java 1.8 Maven pom based projects in Netbeans will not compile.

An early version of Java 8 is installed in the settings of Java Platforms, and all Java 8 projects that are not based on Maven will be compiled and run.

https://jdk8.java.net/download.html

It was not found on the download page, I can not find anything in their search.

Does anyone have success compiling Maven pom projects with an early release of Java 8? Can I use the old tools.jar or where did you find it?

Answer:

This version is missing tools.jar : jdk-8-ea-bin-b106-windows-i586-05_sep_2013.exe

Now it is in the latest version.

+6
source share
7 answers

The tools.jar file in 1.8.0 JDK is located in jdk1.8.0/lib/tools.jar . If this is not the case, then you do not have the JDK correctly.

+9
source

You just need to install the devel package. In the RHEL family, this is:

 # yum install java-1.8.0-openjdk-devel 
+3
source

you can download any version of the tools.jar file from the following site " http://www.java2s.com/Code/Jar/t/Downloadtools160jar.htm "

Note. After downloading any version of tools-xxjar, rename it only to tools.jar and place it in the jrex.x / lib folder.

+1
source

I have a similar problem, but not after reading this post https://code.google.com/p/android/issues/detail?id=187048 . The error appears only when I did not install the JDK in my default directory.

Install it in the default directory to solve the problem.

Hope this helps someone.

+1
source

I had a similar problem when I used Hadoop-Common-2.7.2 as a dependency. When I add exceptions to my POM.xml, my problem is resolved. Therefore, I would recommend this solution.

 <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> 
+1
source

Make sure you are browsing the C:/Program Files/Java/jdk1.8.0_version/lib instead of C:/Program Files (x86)/Java/jdk1.8.0_version/lib

+1
source

I ran into the problem of compiling the maven project, error, inability to find tools.jar in the lib folder, when I looked at Eclipse> Window> preference> Java> Installed JRE>, it pointed to the JRE, which seems obvious, but when I changed the indication to Jdk

The compilation error has been resolved since there are tools.jar in the JDK

before that I tried to copy tools.jar from jdk / lib to jre / lib, but this did not solve the problem

0
source

Source: https://habr.com/ru/post/957165/


All Articles