1. First make sure the environment variables are configured correctly.
2. Then make sure there is tools.pack and rt.pack in the directory where jdk is located, take the directory /usr/java/jdk1.8.0_221-amd64 where jdk1.8.0_221-amd64 is located as an example, make sure there is tools.pack under /usr/java/jdk1.8.0_221-amd64/lib .pack, and make sure that rt.pack is available under /usr/java/jdk1.8.0_221-amd64/jre/lib.
3. Use the tool unpack200 under /usr/java/jdk1.8.0_221-amd64/bin to extract tools.pack and rt.pack to tools.jar and rt.jar respectively,
This is done using the command line as follows.
root@iZbp1260wj4hpl4umpaodkZ:/usr/java/jdk1.8.0_221-amd64/jre/lib# …/bin/unpack200 rt.pack rt.jar
root@iZbp1260wj4hpl4umpaodkZ:/usr/java/jdk1.8.0_221-amd64/lib# …/bin/unpack200 tools.pack tools.jar
Read More:
- [Solved] Ubuntu20.04 Error: “Failed to install the following Android SDK packages as some licences have not..“error
- [Solved] Ubuntu pip Install Error: which is not on PATH
- Ubuntu Server: How to Install Chrome
- [Solved] Ubuntu 20.04 install MATLAB and toolbox permissions Error
- How to Solve labelme Install Error in Ubuntu
- Ubuntu18.04 Install ROS Error: rosdep update [How to Solve]
- [Solved] Ubuntu 18.04 Install opencv3.2.0 and opencv_contrib Error
- How to Solve Xmind Install Error in Ubuntu System
- [Solved] Ubuntu16.4Install vcs2016 Error: mount.vboxsf: mounting failed with the error: Invalid argument
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation
- How to Solve Mujoco Install Error in Ubuntu (Pycharm Run Error)
- Ubuntu 20.04 Desktop Install sublime-text Error: “Certificate verification failed”
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- Windows11 Install Ubuntu Error: WslRegisterDistribution failed with error: 0x800701bc
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- Solution of device eth0 does not see to be present, delaying initialization. Error in network card under Linux
- [Solved] CUDA initialization: Unexpected error from cudaGetDeviceCount()