Questions tagged «jdk»



4
如何在CentOS上正确设置JAVA_HOME?
我正在尝试设置JAVA_HOME,以便可以在本教程的帮助下安装Apache Solr。我通过root用户使用ssh连接到服务器 要允许正在运行的sh脚本安装Apache Solr,请执行以下操作: mount | grep noexec 使用exec选项重新挂载文件系统: mount -o remount,exec /dev/md1 然后,每次我尝试使用以下命令进行安装时 bin/install_solr_service.sh /tmp/solr-5.3.1.tgz 我收到以下消息: WARNING: /opt/solr-5.3.1 already exists! Skipping extract ... Creating /etc/init.d/solr script ... The currently defined JAVA_HOME (/usr/local/jdk) refers to a location where Java could not be found. Aborting. Either fix the JAVA_HOME variable or …
8 centos  java  jdk 

2
Java JDK在依赖项列表,Debian中缺少libjli.so路径
我正在编写chroot监狱的脚本,自动化的一部分包括将各种可执行文件及其依赖项复制到监狱中。我正在使用以下bash行从依赖项列表中解析文件路径(例如,对于Java): $ ldd `which java` | grep -o '/[^()]*' /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 这对Node.js和Python很好用,但是当我尝试java从监狱执行时,出现错误: java:加载共享库时出错:libjli.so:无法打开共享库文件:没有这样的文件或目录 事实证明,依赖项列表中缺少libjli.so路径……至少那些ldd向我们展示的依赖项(第5行): $ ldd `which java` linux-vdso.so.1 => (0x00007ffff7f4d000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7ac3928000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7ac370c000) libjli.so => not found libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7ac3507000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7ac317c000) /lib64/ld-linux-x86-64.so.2 (0x00007f7ac3b48000) 我找到了文件... $ find /usr/lib …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.