今天下午我想为URSim安装openjdk-6-jre,使用命令sudo apt-get install openjdk-6-jre
,但是出现了以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
icedtea-netx:i386 icedtea-netx-common icedtea-netx
E: Package 'openjdk-6-jre' has no installation candidate
当我尝试使用openjdk-8-jdk安装URSim时,我遇到了以下问题。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libjava3d-jni' for glob 'libjava3d-*'
Note, selecting 'libjava3d-java-doc' for glob 'libjava3d-*'
Note, selecting 'libjava3d-java' for glob 'libjava3d-*'
Note, selecting 'ttf-dejavu-core' for glob 'ttf-dejavu*'
Note, selecting 'ttf-dejavu-extra' for glob 'ttf-dejavu*'
Note, selecting 'ttf-dejavu' for glob 'ttf-dejavu*'
Package openjdk-6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
icedtea-netx:i386 icedtea-netx-common icedtea-netx
E: Package 'openjdk-6-jre' has no installation candidate
我也尝试从Oracle下载Java 1.6并安装,但当我尝试安装URSim时,它似乎无法识别它。有关更新镜像或查找正确的安装文件和路径设置以使其正常工作的任何帮助?
javac -source 1.6 -target 1.6
,您可以编译兼容旧版本的代码 - 我不知道是否支持1.6。 - user unknown