OpenJDK

OpenJDK vs Java HotspotVM

北战南征 提交于 2019-12-04 16:28:10
问题 Are OpenJDK VM and Oracle Hotspot VM still two different JVMs? I can't seem to find any somewhat official documentation on anything about OpenJDK VM. Even in OpenJDK homepage there is an HotSpot Group which develops HotSpot VM. The HotSpot group is comprised of developers involved in the design, implementation, and maintanence of the HotSpot virtual machine However if I check java -version on my Windows machine it prints out Java HotSpot(TM) 64-Bit Server VM But on my Ubuntu VPS OpenJDK 64

在linux上通过yum安装JDK

假如想象 提交于 2019-12-04 15:56:48
卸载centos自带的jdk 1.查看当前的jdk版本,并卸载 [root@localhost opt]# rpm -qa|grep java java-1.6.0-openjdk-1.6.0.37-1.13.9.4.el5_11 tzdata-java-2015g-1.el5 //卸载 [root@localhost opt]# rpm -e --allmatches --nodeps java-1.6.0-openjdk-1.6.0.37-1.13.9.4.el5_11 [root@localhost opt]# rpm -e --allmatches --nodeps tzdata-java-2015g-1.el5 安装Jdk 1.查找java相关得列表 [root@localhost jre-1.6.0-openjdk.x86_64]# yum -y list java* Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirrors.btte.net * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: centos.ustc.edu.cn Installed Packages

重磅发布:阿里开源 OpenJDK 长期支持版本 Alibaba Dragonwell

我是研究僧i 提交于 2019-12-04 15:52:40
3 月 21 日北京阿里云峰会,阿里巴巴正式宣布对外开源 OpenJDK 长期支持版本 Alibaba Dragonwell。作为 Java 全球管理组织 Java Community Process (JCP) 的最高执行委员会的唯一中国代表,以及 Oracle 之外的 Java 生态中为数不多的 OpenJDK 定制者,Alibaba Dragonwell 的开源是阿里巴巴向全球 Java 开发者的重磅献礼。 这就是 Alibaba Dragonwell Alibaba Dragonwell 是一款免费的 OpenJDK 发行版。它提供长期支持,包括性能增强和安全修复。Alibaba Dragonwell 目前支持 X86-64/Linux 平台,在数据中心大规模 Java 应用部署情况下, 可以大幅度提高稳定性、效率以及性能。Alibaba Dragonwell 与 Java SE 标准兼容,用户可以使用 Alibaba Dragonwell 开发和运行 Java 应用程序。 此次,阿里巴巴发布的 Alibaba Dragonwell 8 预览版本对应 OpenJDK 8 的版本。Alibaba Dragonwell的开源为全球 Java 开发者提供了新选择。同时对于阿里云,Alibaba Dragonwell 会针对 LTS 的两个版本 Java 8 和 Java 11

JDK9 Hotspot debug using gdb, causing SIGSEGV Segmentation fault in eclipse/Ubuntu terminal

怎甘沉沦 提交于 2019-12-04 15:51:23
I am trying to debug JDK9. I want to trace source code and see the control flow of JDK/Hotspot code. I use gdb and Eclipse but there is a problem SIGSEGV Segmentation fault . I follow Buildme.md from JDK official document to configure JDK9, bash ./configure --with-debug-level=slowdebug --with-target-bits=64 --disable-warnings-as-errors Then, make all I get my customized debug version: /images/jdk/bin/java -version openjdk version "9-internal" OpenJDK Runtime Environment (build 9-internal+0-adhoc.xfwu.9dev) OpenJDK 64-Bit Server VM (build 9-internal+0-adhoc.xfwu.9dev, mixed mode) The following

OpenJDK on OpenShift: “NoSuchAlgorithmException: EC AlgorithmParameters not available”

ぐ巨炮叔叔 提交于 2019-12-04 15:51:02
问题 I'm running into java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available with Wildfly 8.2 (OpenJDK 1.8.0_31) on OpenShift (the exception is thrown by AmazonHttpClient ). It looks like there is a bug with OpenJDK 1.8 and ECC: https://bugzilla.redhat.com/show_bug.cgi?id=1167153 On of the suggested workarounds requires editing jre/lib/security/java.security to disable jdk.tls.disabledAlgorithms=EC,ECDHE,ECDH . Or removing jre/lib/ext/sunec.jar Unfortunately I'm not able to

Using encryption that would need Java Policy Files in openjre

[亡魂溺海] 提交于 2019-12-04 14:59:58
if i want to use java and encryption with keys longer than 128bit i have to use the Java Policy Files. How to get those applications up and running with openjre? I get the same error i get using oracle jre without policy files, but i can't simply use the Oracle Policy Files? or can i? Or would building the project with openjdk help? Thank You I found the following. It seems to solve all the policy problems i ever had. try { Field field = Class.forName("javax.crypto.JceSecurity").getDeclaredField("isRestricted"); field.setAccessible(true); field.set(null, java.lang.Boolean.FALSE); } catch

How do I disallow particular SSL protocols in Jetty?

馋奶兔 提交于 2019-12-04 13:51:37
I have a web application running on Jetty 6 + Open JDK 7 on Debian 6.0.7. I have a security requirement to accept a TLS handshake but not an SSLv3.0 handshake when a client initiates an HTTPS connection. In my jetty.xml I set the protocol to TLS: <New class="org.mortbay.jetty.security.SslSocketConnector"> <Set name="protocol">TLS</Set> ... With this configuration, the web server still appears to accept an SSLv3.0 handshake. This has been verified with the 'sslscan' tool and running 'curl -sslv3 -kv {host}'. Is it possible to configure Jetty to only accept a TLS handshake? I would be willing to

IcedTea

守給你的承諾、 提交于 2019-12-04 11:48:06
IcedTea: IcedTea项目提供了一个利用 Free Software 构建工具,从 http://openjdk.java.net 构建源代码的工具,并为上游的openjdk代码库添加了一些关键功能: 一个清晰的发布过程,包括稳定的发布分支和其他您希望从自由/开源软件项目中获得的过程。 包含OpenJDK之前包含错误修复 J对附加平台的JIT支持 (ARM32 on IcedTea 1.x, ARM32, ppc64, ppc64le & AArch64 on IcedTea 2.x and AArch64 on IcedTea 3.x) 支持替代 JamVM & CACAO 虚拟机 请阅读原始公告 : 请注意,插件和Web启动支持现在由一个单独的项目 IcedTea-Web 提供。 除了IcedTea,我们现在还托管以下存储库: IcePick , 它允许OpenJDK语言工具(javac、javadoc、javah、javap、apt)使用任何1.5兼容的Java编译器单独构建,并由任何基于GNU类路径的运行时使用 BrandWeg , 它将OpenJDK的元素添加到GNU类路径的现有来源。 为 VisualVM 构建支持,这是一个轻量级的分析器和故障诊断工具。 Thermostat 一种用于热点JVM的检测工具,支持在多个主机上监视多个JVM实例(可选地在云环境中)

Is Java SSL broken in OpenJDK on Ubuntu?

可紊 提交于 2019-12-04 11:26:39
问题 I am on a fresh install of Ubuntu having just installed OpenJDK: OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) on Ubuntu 64 bit 10.10 Not sure if this is relevant, but I'm running it from within VMWare Fusion. The following line: javax.net.SSLContext.getDefault(); // same as getInstance("Default") throws the following exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Default SSLContext not available My colleagues and I have tried this on several machines,

Java: Fonts look garbled on Linux, but fine on windows

喜你入骨 提交于 2019-12-04 10:23:35
I'm writing a java application that renders PDF documents to images, and when I run it on windows it works fine. But when I render the PDF on Linux, the standard fonts look a bit garbled, like there would be a few pixels missing on the right side of some characters. I only tested it on a fresh install of Ubuntu 9.04 with OpenJDK 6, but I'm quite sure I have seen similar issues before on Linux. I also tried to open the PDF with other Java PDF applications, like the SwingLabs PDFRenderer and the IcePDF Demo Applet, and they had the same problem. On windows they all render the document just fine.