update-java-alternatives: plugin alternative does not exist之解决方法
来源:互联网 发布:linux bind 服务器搭建 编辑:程序博客网 时间:2024/05/29 21:18
Ubuntu安装jdk1.7:
1.$ sudo apt-get -y install openjdk-7-jdk
2.$ update-java-alternatives -s java-1.7.0-openjdk-amd64
当执行此命令时:会出现update-java-alternatives: plugin alternative does not exist: /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so
执行命令:sudo apt-get install icedtea-7-plugin
3.update-java-alternatives -s java-1.7.0-openjdk-amd64
如果出现了permission denied,在命令前面加个sudo就可以了。
安装1.6:
1. Sudo mkdir /opt/java
2. copy jdk-6u45-linux-x64.bin /opt/java/(no command ‘copy’found,将copy换成cp)
3. set oracle JDK 1.6 environment in /etc/bash.bashrc:
export JAVA_HOME=/opt/java/jdk1.6.0_45
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$JAVA_HOME/lib:$JAVA_HOME
4.source /etc/bash.bashrc
- update-java-alternatives: plugin alternative does not exist之解决方法
- java.lang.IllegalArgumentException: column 'xxx' does not exist解决方法
- java.lang.IllegalArgumentException: column '_id' does not exist 解决方法
- Shared memory realm does not exist 解决方法
- cscope file does not exist 错误解决方法
- Resource '/Servers' does not exist 解决方法
- org.apache.maven.plugins:maven-archetype-plugin does not exist
- rc-update service ‘net.eth0′ does not exist
- Maven系列之99.0-does-not-exist
- java.sql.SQLException: The user specified as a definer ('root'@'%') does not exist 解决方法
- java.sql.SQLException: The user specified as a definer ('root'@'%') does not exist 解决方法
- DocumentRoot does not exist
- mapreduce_shuffle does not exist
- @Scripts “does not exist”
- 'resourceFile' does not exist.
- 【[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist】解决方案
- ORA-27101 Shared memory realm does not exist的解决方法
- 关于resources.ap_ does not exist的解决方法
- java异常
- Junit中级
- 在Qt Creator中配置QNX设备
- 正则表达式
- Linux下设置程序可以在当前目录下查找so文件
- update-java-alternatives: plugin alternative does not exist之解决方法
- 用Jersey构建RESTful服务3--JAVA对象转成JSON输出
- Ajax-jQuery实现
- Android之常用开发框架
- OC基础教程9-协议
- android Immutable bitmap passed to Canvas constructor异常
- Java中堆内存和栈内存详解
- 哥本哈根消防队员埃里希的感人故事
- js之DOM操作(插入节点appendChild())