OpenJDK

Cordova build - Could not resolve com.android.tools.build:gradle:1.5.0

旧城冷巷雨未停 提交于 2019-12-04 10:20:15
After upgrading the cordova and the npm of my machine (Ubuntu 15.10) I can not build a new project with the cordova. The build accuses an error in graddle. I did some research and found some possible solutions. Solutions like changing the version and url graddle repo. Anyway, it did not work. I am using the cordova 6.0.0 and npm 1.4.21. Below commands of fresh cordova app installation: soufraz@atlantis:~/Projects/apps$ cordova create test com.somename.test Test Creating a new cordova project. soufraz@atlantis:~/Projects/apps$ cd test/ soufraz@atlantis:~/Projects/apps/test$ cordova platform add

What happened to JEP 145 (faster jvm startup due to compiled code reusage)?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 05:18:41
In 2012, a JEP 145 has been created in order to cache compiled native code in java for faster jvm startups . At that time, it had been officially announced. However, the JEP 145 does not exist anymore. What happened to it? The idea sounds great. I could not find an official statement why and when this project has been cancelled. The text of the JEP is still available in the JEP source repository : http://hg.openjdk.java.net/jep/jeps/raw-file/c915dfb4117d/jep-145.md There doesn't seem to be a documented reason for it to be canceled. But we now know that AOT is in the works and it solves many of

OpenJDK implementation of System.arraycopy

穿精又带淫゛_ 提交于 2019-12-04 02:58:31
Following a question related to the way the JVM implements creation of Strings based on char[], I have mentioned that no iteration takes place when the char[] gets copied to the interior of the new string, since System.arraycopy gets called eventually, which copies the desired memory using a function such as memcpy at a native, implementation-dependent level ( the original question ). I wanted to check that for myself, so I downloaded the Openjdk 7 source code and started browsing it. I found the implementation of System.arraycopy in the OpenJDK C++ source code, in openjdx/hotspot/src/share/vm

windows下安装openjdk

心不动则不痛 提交于 2019-12-03 23:38:47
redhat版openjdk,解压后就能用,下载地址 https://developers.redhat.com/products/openjdk/download 。 Azul Zulu版openjdk,解压后就能用,下载地址 https://www.azul.com/products/zulu-and-zulu-enterprise/download-openjdk-10-for-windows/ 。 来源: https://www.cnblogs.com/bjguanmu/p/11811538.html

容器中的JVM资源该如何被安全的限制?

牧云@^-^@ 提交于 2019-12-03 22:50:52
前言 Java与Docker的结合,虽然更好的解决了application的封装问题。但也存在着不兼容,比如Java并不能自动的发现Docker设置的内存限制,CPU限制。 这将导致JVM不能稳定服务业务!容器会杀死你JVM进程,而健康检查又将拉起你的JVM进程,进而导致你监控你的pod一天重启次数甚至能达到几百次。 我们希望当Java进程运行在容器中时,java能够自动识别到容器限制,获取到正确的内存和CPU信息,而不用每次都需要在kubernetes的yaml描述文件中显示的配置完容器,还需要配置JVM参数。 使用JVM MaxRAM参数或者解锁实验特性的JVM参数,升级JDK到10+,我们可以解决这个问题(也许吧~.~)。 首先Docker容器本质是是宿主机上的一个进程,它与宿主机共享一个/proc目录,也就是说我们在容器内看到的/proc/meminfo,/proc/cpuinfo 与直接在宿主机上看到的一致,如下。 Host cat /proc/meminfo MemTotal: 197869260 kB MemFree: 3698100 kB MemAvailable: 62230260 kB 容器 docker run -it --rm alpine cat /proc/meminfo MemTotal: 197869260 kB MemFree: 3677800

How to know if I am using Open JDK or Oracle JDK?

拈花ヽ惹草 提交于 2019-12-03 22:26:18
Using java -version gives me this. java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) Is it an OpenJDK or OracleJDK ? I think that you're using OracleJDK. As I saw with a google search, the openJDK --version output is like this: java -version openjdk version "1.8.0-internal" OpenJDK Runtime Environment (build 1.8.0-internal-0) OpenJDK 64-Bit Zero VM (build 25.0-b20-internal, interpreted mode) See: http://mail.openjdk.java.net/pipermail/jdk8-dev/2013-July/002840.html On debian, jessie-backports, openjdk-8:

windows下编译openjdk(openj9)过程

左心房为你撑大大i 提交于 2019-12-03 20:51:11
请严格按照如下顺序和参数,有些很隐蔽的坑,没必要浪费时间自己去试 1.首先安装cygwin最新64位版本,运行时设置网易镜像,设置说明如下 http://mirrors.163.com/.help/cygwin.html 链接镜像后后安装包如下(在category模式下搜索并安装,以空格区别每一个包): binutils make m4 cpio awk file zip unzip procps-ng diffutils curl wget 同时必须安装Devel目录中所有包,时间会有点长 2.llvm 安装 64位 切记安装到 d:\LLVM 路径需要无空格 下载地址 http://releases.llvm.org/7.0.0/LLVM-7.0.0-win64.exe cygwin 的.bashrc末尾增加如下 export PATH="/cygdrive/d/LLVM/bin:$PATH" 3.nasm 安装 切记安装到D:\NASM 路径需要无空格 下载地址 https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/win64/ cygwin 的.bashrc末尾增加如下 export PATH="/cygdrive/d/NASM:$PATH" 3.Windows JDK 10 下载地址 https://cn.azul.com

windows下编译openjdk(openj9)过程

泪湿孤枕 提交于 2019-12-03 20:38:49
请严格按照如下顺序和参数,有些很隐蔽的坑,没必要浪费时间自己去试 1.首先安装cygwin最新64位版本,运行时设置网易镜像,设置说明如下 http://mirrors.163.com/.help/cygwin.html 链接镜像后后安装包如下(在category模式下搜索并安装,以空格区别每一个包): binutils make m4 cpio awk file zip unzip procps-ng diffutils curl wget 同时必须安装Devel目录中所有包,时间会有点长 2.llvm 安装 64位 切记安装到 d:\LLVM 路径需要无空格 下载地址 http://releases.llvm.org/7.0.0/LLVM-7.0.0-win64.exe cygwin 的.bashrc末尾增加如下 export PATH="/cygdrive/d/LLVM/bin:$PATH" 3.nasm 安装 切记安装到D:\NASM 路径需要无空格 下载地址 https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/win64/ cygwin 的.bashrc末尾增加如下 export PATH="/cygdrive/d/NASM:$PATH" 3.Windows JDK 10 下载地址 https://cn.azul.com