[英]Path for JDK8 installation on RPI not working
I have tried to upgrade my existing JDK8 on my Raspberry Pi, but I failed. 我试图在Raspberry Pi上升级现有的JDK8,但失败了。
I downloaded the ARM version from the oracle site, extracted it in Windows, transferred it to my pi via FTP and copied it to /usr/local. 我从oracle站点下载了ARM版本,在Windows中将其解压缩,通过FTP将其传输到我的pi,然后将其复制到/ usr / local。
Then I tried to link the folder to $PATH or update-alternatives, but the terminal and tomcat will not recognize I have java installed. 然后,我尝试将文件夹链接到$ PATH或update-alternatives,但是终端和tomcat无法识别我安装了Java。
I know you have to edit bash.bashrc, environment or profile to edit the PATH for every boot, but this does not even work in the same session. 我知道您必须编辑bash.bashrc,环境或配置文件才能为每次启动编辑PATH,但这甚至不能在同一会话中工作。
Update: 更新:
I solved my problem on my own now somehow... 我现在以某种方式自己解决了问题...
I reinstalled the OS completely and followed some tutorial to update jdk, again. 我完全重新安装了操作系统,然后按照一些教程来再次更新jdk。 Downloaded, unzipped, chmod, set PATH and JAVA_HOME, set update-alternatives and this time it worked somehow... 下载,解压缩,chmod,设置PATH和JAVA_HOME,设置更新替代,这一次它以某种方式工作了...
cd /usr/local/jdk8/bin
sudo chmod +x java
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.