我刚刚克隆了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
我正在安装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/
# 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
-
下面是我安装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
我已经将服务器更新到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.
我有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?
我可以在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.
因此,我尝试构建.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
我尝试过将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
我正在尝试用Ruby on Rails编写一个web应用,并在那里使用elasticsearch进行搜索。我知道elastic search在内部调用java api,事实上,它需要在机器上安装jdk。所以,我从oracle官方网站下载了java。"“中的'jdk-8u101-linux-x64.tar.gz‘文件。
下载完成后,我按照官方文档的建议从gz包中解压了文件,但我的机器上仍然没有安装java。我确信我错过了什么,但是什么呢?
Installation of the 64-bit JDK on Linux Platforms
This procedure insta
我使用厨师12.5.1和码头形象测试-厨房正在运行的RHEL 7.x
我将jdk-8u65-linux-x64.rpm下载到我的Docker测试实例的本地目录中,并运行下面的菜谱来安装它。
rpm_package 'install_java' do
package_name 'jdk-8u65-linux-x64.rpm'
source '/home/user/jdk-8u65-linux-x64.rpm'
end
但它会引发以下错误:
---- Begin output of rpm -i /home/user/jdk-8u65-li
我无法在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.....
我想在我的ubuntu中安装jdk7,所以我尝试使用以下命令
sudo tar -zxf jdk-7u79-linux-x64.tar.gz -c /opt/jdk
但是它显示了一个错误消息:
tar (child): jdk-7u79-linux-x64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
如
我在linux服务器RHEL7中安装了jdk1.8.0_161。我无法检查java版本,因为"/usr/bin/javac: /lib/ld-linux.so.2:错误的ELF解释器:没有这样的文件或目录“
下面是我安装jdk所遵循的步骤:
cd /opt/jdk1.8.0_161/
alternatives --install /usr/bin/java java /opt/jdk1.8.0_161/bin/java 2
alternatives --config java
There is 1 program that provides 'java'.
Se