OpenJDK

OpenJDK vs Java HotspotVM

有些话、适合烂在心里 提交于 2019-12-03 10:41:57
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-Bit Server VM If those are two different VMs what are the main differences between them? Do they have

Java发展历史

∥☆過路亽.° 提交于 2019-12-03 10:31:25
Java历史 时至今日,Java已经诞生了2017-1995年。从1996年一路走来的JDK1.0至今日的JDK1.9,发布的版本数目已经相当的多。那么我们现在正在使用的这个版本是如何一步一步的走到今天,下面一起追溯JAVA的历史。 1991年4月,由Sun公司的James Gosling博士领导的绿色计划(Green Project)正式启动,项目的目的是开发一种能够在各种消费性的电子产品上运行的程序架构,这个项目的产物名字叫做橡树(Oak),也就是Java语言的前身。 1995年开始IT行业进入互联网的潮流,Oak迅速找到了最适合自己发展的市场定位。由于Oak这个商标在不同国家已被注册,考虑到语言的后续壮大与发展,同年5月23日Oak将名称修改为了Java(爪洼岛)。 1996年1月23日JDK1.0发布,Java语言有了第一个正式版本的运行环境,JDK1.0挂载了一个存粹解释执行的JVM(Java Virtual Machine),名称叫做Sun Classic VM。 1997年2月19日JDK1.1发布,Java技术的最基础支撑都在这个版本中诞生。在这一年到1999年这个时间内,JDK的版本从1.1.0发布到了1.1.8,一共九个版本。从1.1.4版本之后所有的JDK版本都有一个工程代码,代号的名称是以动物的名称命名。 1998年12月4日,Sun公司发布JDK1.2版本

在Ubuntu 12.04系统中安装jdk和配置tomcat服务器

吃可爱长大的小学妹 提交于 2019-12-03 10:18:08
Ubuntu 自带的 jdk 版本是 OpenJDK ,即如下图所示: 为了完成老师布置的 J2EE 作业,不得自己配置 J2EE 环境,要重新安装 JDK 。第一次在 linux 环境下接触这些东西,参考了许多的网上资源,最终还是成功了。下面就是具体的操作。 准备 首先在 Oracle 官网下载 jdk 压缩包文件,链接是 : http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html 我下载的是: jdk-7u17-linux-x64.tar.gz 。然后解压到“ /opt/” 目录下面。(其实解压的位置是可以自定义的)。 然后,就是要下载 apache-tomcat-7.0.37.tar.gz 这个压缩包文件。下载地址: http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.37/bin/apache-tomcat-7.0.37.tar.gz 操作与 jdk 压缩包的处理方式相同,同样也是解压到“ /opt/” 目录下面。最终,在“ /opt/” 目录下多出两个文件夹,如下图所示。 JDK 和 TOMCAT 就这样安装好了,下面就是 JDK 的配置。 JDK 配置 Ubuntu 默认的 JDK 版本如上文所述的是

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

对着背影说爱祢 提交于 2019-12-03 09:05:05
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 do this on OpenShift (missing permissions). What would be the best workaround here? Can I alternatively

Installing maven2 without openjdk

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 08:42:20
问题 by default ubuntu comes with openjdk. I installed jdk from sun, and removed openjdk, but with openjdk I had to remove maven2. How can I reinstall it without installing openjdk? ~$ java -version java version "1.7.0_03" Java(TM) SE Runtime Environment (build 1.7.0_03-b04) Java HotSpot(TM) Server VM (build 22.1-b02, mixed mode) ~$ sudo apt-get install maven2 (...) The following extra packages will be installed: (...) openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib (...) The

open jdk 各版本源码及下载地址

只谈情不闲聊 提交于 2019-12-03 08:25:06
java 8 源代码地址:http://jdk.java.net/8/ windows 下载地址: http://download.java.net/java/jdk8u162/archive/b01/binaries/jdk-8u162-ea-bin-b01-windows-i586-04_oct_2017.exe http://download.java.net/java/jdk8u162/archive/b01/binaries/jdk-8u162-ea-bin-b01-windows-x64-04_oct_2017.exe Mac OS 地址地址:http://download.java.net/java/jdk8u162/archive/b01/binaries/jdk-8u162-ea-bin-b01-macosx-x86_64-04_oct_2017.dmg Linux下载地址:http://download.java.net/java/jdk8u162/archive/b01/binaries/jdk-8u162-ea-bin-b01-linux-x64-04_oct_2017.tar.gz java 9 源代码地址:http://jdk.java.net/java-se-ri/9 windows 下载地址:http://download.java.net

Where are the Java 7 updates for OpenJDK?

给你一囗甜甜゛ 提交于 2019-12-03 06:51:28
问题 Oracle has released update 2 for Java 7, while it appears OpenJDK is still on the original build 147 which was released last summer. Will/are updates available for OpenJDK? There does seem to be an OpenJDK project just for updates (http://openjdk.java.net/projects/jdk7u/), which mentions they will release updates at the same time as Oracle, but I just can't find anything. Thanks Marc 回答1: I'm going to respond to my own question here to synthesize all my findings and the answers by @Agemen and

Where to report issues of OpenJDK when you're not a OpenJDK developer?

风流意气都作罢 提交于 2019-12-03 06:17:26
问题 First I thought it's strange that there's no link to a bug tracker on the OpenJDK project page, then I found bugs.openjdk.java.net, but it's only for accredited project members. How do people outside the ivory tower contribute issues? There's the mailing list and some people call sending issues and patches to a mailing list bug tracking... but the development and usage of bug tracker contradicts. 回答1: I wanted also to report a bug and the only place I could find is the following one: http:/

Fonts slightly wider in OpenJDK vs OracleJDK

我只是一个虾纸丫 提交于 2019-12-03 05:41:42
I'm noticing differences in font spacing using OpenJDK compared to OracleJDK. I've narrowed this down to the fonts. They are rendered by OpenJDK ever so slightly wider... Careful visual inspection of the screenshot above shows the character widths are identical, the only difference is the spacing. I also confirmed this with programmatic check of font metrics for all characters A-Za-z0-9. e.g. the String "Dialog - plain" at 12pt is 125px wide in OpenJDK - my build of 8u131-b11 125px wide in OpenJDK - stock RPM from redhat disk - 1.8u45-b13 120px wide in OracleJDK - 8u131-b11 release from Oracle

Resolving version conflict between java and javac on Ubuntu

早过忘川 提交于 2019-12-03 05:02:36
问题 I have a problem with my compiled Java application on Ubuntu. It throws UnsupportedClassVersionError . I am compiling with a higher JDK version than the one that is configured in my PATH to run Java: $ javac -version javac 1.7.0_147 $ java -version java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2) OpenJDK Client VM (build 20.0-b11, mixed mode, sharing) How can I resolve this? 回答1: Run either of the following to locate where the location is of