我刚刚克隆了openjdk9:
> hg clone http://hg.openjdk.java.net/jdk9/dev 9dev
> cd 9dev
> sh get_source.sh
> bash configure
> make
现在我想构建它,但是在“make”之后给出了这个错误:
Compiling 457 files for BUILD_INTERIM_jdk.javadoc
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:d
root@sotiris-X556UQK:~# sudo apt-get clean && sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of
这是我的Dockerfile:
FROM centos:6.6
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo ZONE=\"Asia/Shanghai\" > /etc/sysconfig/clock
RUN rm -rf /etc/yum.repos.d/*.repo
#COPY CentOS6-Base-163.repo /etc/yum.repos.d/
RUN yum clean all
RUN groupadd -g 2500 canal; useradd -u
# which java
/usr/bin/which: no java in (/usr/local/jdk/jdk1.5.0_10/bin/java:/usr/local/jdk/jdk1.5.0_10/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
我在/usr/local/jdk/jdk1.5.0_10中安装了java,但无法运行java -version
我明白了
$ java -version
-
我正在安装Eclipse (Adt Linux86_64)。我将文件放在我的/opt/文件夹中,当我尝试运行eclipse时,它会弹出一条消息:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/opt/adt-bundle-linux-x86_64-20140702/eclipse/
因此,我尝试构建.rpm提供的文件。安装没有100%成功,所以我想卸载它并以简单的方式完成openjdk,但是现在我不能安装任何东西,因为linux告诉我jdk不在系统上。Linux试图删除它,但未能阻止我安装任何东西:
例如,如果我尝试
sudo apt install openjdk-7-jdk
它给了我这个:
0 upgraded, 38 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/62,5 MB of archives.
After
所以我尝试构建Oracle提供的.rpm文件。安装没有100%成功,所以我想卸载它,然后用openjdk的简单方法来完成它,但现在我什么都不能安装,因为linux告诉我jdk在系统上,而实际上jdk不在系统上。Linux试图删除它,但无法阻止我安装任何东西:
例如,如果我尝试
sudo apt install openjdk-7-jdk
它给了我这个:
0 upgraded, 38 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/62,5 MB
下面是我安装zulu jdk的方式:
wget https://cdn.azul.com/zulu/bin/zulu18.32.13-ca-jdk18.0.2.1-linux_x64.tar.gz
mv zulu18.32.13-ca-jdk18.0.2.1-linux_x64.tar.gz /opt
cd /opt
tar -zxvf zulu18.32.13-ca-jdk18.0.2.1-linux_x64.tar.gz
vim ~/.bash_profile
export JAVA_HOME=/opt/zulu18.32.13-ca-jdk18.0.2.1-linux_x64
ex
我有Ubuntu16.04(32位)我有openjdk版本"1.8.0_121“
我从makefile中得到了一个错误:
You are attempting to build with the incorrect version
of java.
Your version is: openjdk version "1.8.0_121".
The correct version is: Java SE 1.6.
我试过了
sudo apt-get install openjdk-6-jdk
返回
openjdk-6-jdk has no installation ca
我尝试在ubuntu11.04中安装java,我下载了"jdk-1_5__22-linux-i586.bin“,为此我使用了教程和
# sudo mv jdk-1_5_0_22-linux-i586.bin /usr/lib/jvm
# cd /usr/lib/jvm
# chmod +x jdk-1_5_0_22-linux-i586.bin
# ./jdk-1_5_0_22-linux-i586.bin
当我执行命令# ./jdk-1_5_0_22-linux-i586.bin时,我得到了以下错误消息
Do you agree to the above license terms?
我无法在Xubuntu 18.04/
sudo apt-get install oracle-java8-installer
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
oracle-java8-installer is already the newest version (8u201-1~webupd8~1).
0 upgraded, 0 newly installed, 0 to remo
我试图用以下命令在CentOS框上重新安装java (这是最好的命令吗?):
rpm -i --force /root/jdk-6u11-linux-i586.rpm
但是当我这样做的时候我会犯错误:
Error: Could not open input file: /usr/java/jdk1.6.0_11/jre/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.6.0_11/jre/lib/jsse.pack
charsets.jar...
etc.....
我已经将服务器更新到JDK 1.7.0-51。但是当我尝试在glassfish中启动domain1时,控制台显示
JVM failed to start: java.io.IOException: Cannot run program "/usr/java/jdk1.7.0_51/bin/java" (in directory "/home/glassfish/glassfish4/glassfish/domains/domain1/config"): error=13, Permiso denegado
当我尝试使用其他已安装的versión jdk 1.7.
我尝试过将oracle-java7-installer包从自定义存储库安装到Ubuntu 12,但在执行一些安装后脚本时失败了。所以。我只想回滚它,然后继续使用另一个解决方案(安装java 7 jdk)。我试着让
用set -x更新
> sudo aptitude remove oracle-java7-installer
The following packages will be REMOVED:
oracle-java7-installer
0 packages upgraded, 0 newly installed, 1 to remove and 47 not upgr
我使用的是RHEL6.5,并按照进行。
在ambari服务器设置过程中,我收到关于jdk安装的错误(第一次和连续尝试)。
ambari-server setup
Using python /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'enabled'
SELinux mode is 'permissive'
WARNING: SELinux is set to 'permissive' mode and temporarily disa
我下载了'jdk-7u55-linux-x64.tar.gz‘
当我执行以下命令解压缩时,
sudo tar xvzf jdk-7u55-linux-x64.tar.gz
也试过了,
sudo tar xvf jdk-7u55-linux-x64.tar.gz
sudo tar xf jdk-7u55-linux-x64.tar.gz
sudo tar -xvf jdk-7u55-linux-x64.tar.gz
但我终于犯了错误,
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unex
我可以在Ubuntu 11 (64位)上安装Oracle (jre和jdk)中的Java 7吗?我听说Sun被丢弃了,我不得不使用openJDK。是那么回事吗?那JRE呢?
编辑
我下载了JAI和ImageIO文件,然后按照下面的说明:,但当我运行它时:
sudo sh jai-1_1_3-lib-linux-amd64-jre.bin
sudo sh jai-1_1_3-lib-linux-amd64-jdk.bin
我发现了一个错误:
this is not a proper jdk directory. exiting install.
我需要使用wget下载这个文件http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz。
我使用命令
wget http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz
该文件将被下载,但当我试图解压缩该文件时,我会得到以下内容
tar -zxvf jdk-7u67-linux-x64.tar.gz
gzip: stdin: not in gzip format
tar: Child return
为了读取为Linux生成的jdk-11+8源代码,我尝试构建java.nio.ByteBuffer。
我安装了基于的所有依赖项,然后成功地运行了configure。
但是,当我运行make时,会发现一个奇怪的错误:缺少一个Java,它看起来像是一个引导问题。
git clone https://github.com/openjdk/jdk.git
pushd jdk
bash configure
...
The existing configuration has been successfully updated in
/home/ubuntu/Code/jdk/build/linux-x