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

后端 未结 13 1336
终归单人心
终归单人心 2020-12-31 09:32

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

相关标签:
13条回答
  • 2020-12-31 09:59

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

    # yum install java-1.8.0-openjdk-devel
    
    0 讨论(0)
  • 2020-12-31 10:03

    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.

    0 讨论(0)
  • 2020-12-31 10:03

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

    0 讨论(0)
  • 2020-12-31 10:04
    1. Install the latest JDK from here.

    2. If the problem not solved then go back to react-native documentation about installing react native (android) on mac, here

    3. In root of your reactnative project :

        cd android
        ./gradlew clean 
        ./gradlew assembleRelease
    
    0 讨论(0)
  • 2020-12-31 10:07

    Some JDK packages contain just the Java Runtime Environment.

    So for instance in Fedora, Oracle Linux, RHEL, CentOS java-1.8.0-openjdk package contains just the JRE. If you want the development tools, then install the java-1.8.0-openjdk-devel package instead.

    And in Debian/Ubuntu openjdk-8-jre package contains just the JRE. If you want the development tools, then install the openjdk-8-jdk package instead.

    0 讨论(0)
  • 2020-12-31 10:10

    Simply, copy the tools.jar from your jdk\lib folder and paste into jre\lib folder.

    0 讨论(0)
提交回复
热议问题