java-11

How to get Graal SDK packages to work without Maven?

霸气de小男生 提交于 2019-12-03 09:06:33
I am developing a Java application that needs to execute JavaScript. Nashorn JS engine is about to get deprecated and the replacement is the set of APIs provided by Graal SDK which makes use of GraalVM. The virtual machine that essentially executes a number of languages. At least that is what I think. So I spent a day trying to get it working. I downloaded GraalVM rc6 that uses JDK 8. I use IntelliJ IDEA and I added GraalVM as a new JDK. I found it strange that I am supposed to add a virtual machine as a development kit, but I knew it is based on JDK 8 so I was ok with it. And the problem was

Eclipse 2018-09 with OpenJDK 11 on Windows 10

烈酒焚心 提交于 2019-12-03 08:33:27
问题 I just installed the OpenJDK version of the JDK 11 General-Availability Release on Windows 10. I tried to install it as a JRE in the just-released Eclipse 2018-09 (4.9.0), and a message appared in the Eclipse dialog saying: You selected a JRE that this version of Eclipse JDT does not yet support fully. Some of the features may not work as expected. What is the problem? Does Eclipse 2018-09 not fully support JDK 11? Or is it that Eclipse doesn't fully support OpenJDK 11 but supports the Oracle

Maven surefire and JDK 11

佐手、 提交于 2019-12-03 07:53:45
I'm trying to get Maven surefire to run under JDK 11 but I keep getting these errors: If I set reuseForks to true: Error occurred in starting fork, check output in log Process Exit Code: 1 at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:670) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:283) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:246) If I set it to false: Execution default-test of goal org.apache.maven.plugins:maven-surefire- plugin:3.0.0-M1:test failed: java.lang

Getting Android sdkmanager to run with Java 11

时光总嘲笑我的痴心妄想 提交于 2019-12-03 07:17:42
I am facing a problem while running Android sdkmanager with Java 11 (Not studio, only SDK tools). I don't want to install JDK 8 or something similar. Is there a way to fix this for Android sdkmanager with JDK 11? I have gone through this answer and it doesn't offer command line fix for java 11. Any other workaround possible? If anyone is looking for a Linux fix on Java 11. I built this on top of Wang's answer cd Android/tools/bin mkdir jaxb_lib wget http://central.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.jar -O jaxb_lib/activation.jar wget http://central.maven.org

OpenJDK JDK11 not having JMC- Java Mission Controller- FlightRecorder

穿精又带淫゛_ 提交于 2019-12-03 07:11:50
问题 I was hoping JMC would be available with OpenJDK, JDK11 binaries as this has been opensourced from Java 11 by oracle, but could not locate this in Oracle and AdoptOpenJDK Java-11 binaries under bin folder. I have also tried this https://jdk.java.net/jmc/ as some article said its being releases separately. Does anyone know how to get JMC for OpenJDK-11. 回答1: Normally the builds will be available here: https://jdk.java.net/jmc/ See http://hirt.se/blog/?p=1007 for more information on the new

How to install JDK 11 under Ubuntu?

半腔热情 提交于 2019-12-03 05:28:36
问题 So Java 11 is out. Does anybody know how to install it (OpenJDK from Oracle) from the command line? I would like to see something like it was before for Oracle Java 10: sudo add-apt-repository ppa:linuxuprising/java sudo apt-get update sudo apt-get install oracle-java10-installer P. S. In the similar question proposed instruction: sudo apt-get install openjdk-11-jdk doesn't work. 回答1: sudo apt-get install openjdk-11-jdk do work, only it installs OpenJDK 10 (very intuitive, isn't it). This

Consuming stack traces noticeably slower in Java 11 than Java 8

我们两清 提交于 2019-12-03 01:18:01
问题 I was comparing the performance of JDK 8 and 11 using jmh 1.21 when I ran across some surprising numbers: Java version: 1.8.0_192, vendor: Oracle Corporation Benchmark Mode Cnt Score Error Units MyBenchmark.throwAndConsumeStacktrace avgt 25 21525.584 ± 58.957 ns/op Java version: 9.0.4, vendor: Oracle Corporation Benchmark Mode Cnt Score Error Units MyBenchmark.throwAndConsumeStacktrace avgt 25 28243.899 ± 498.173 ns/op Java version: 10.0.2, vendor: Oracle Corporation Benchmark Mode Cnt Score

Eclipse 2018-09 with OpenJDK 11 on Windows 10

假如想象 提交于 2019-12-02 22:21:53
I just installed the OpenJDK version of the JDK 11 General-Availability Release on Windows 10. I tried to install it as a JRE in the just-released Eclipse 2018-09 (4.9.0), and a message appared in the Eclipse dialog saying: You selected a JRE that this version of Eclipse JDT does not yet support fully. Some of the features may not work as expected. What is the problem? Does Eclipse 2018-09 not fully support JDK 11? Or is it that Eclipse doesn't fully support OpenJDK 11 but supports the Oracle JDK 11? What "features" specifically can I expect to "not work as expected"? Update: From an Internet

OpenJDK JDK11 not having JMC- Java Mission Controller- FlightRecorder

倾然丶 夕夏残阳落幕 提交于 2019-12-02 20:48:13
I was hoping JMC would be available with OpenJDK, JDK11 binaries as this has been opensourced from Java 11 by oracle, but could not locate this in Oracle and AdoptOpenJDK Java-11 binaries under bin folder. I have also tried this https://jdk.java.net/jmc/ as some article said its being releases separately. Does anyone know how to get JMC for OpenJDK-11. Hirt Normally the builds will be available here: https://jdk.java.net/jmc/ See http://hirt.se/blog/?p=1007 for more information on the new delivery format. The builds have been (temporarily) pulled because a switch from the old javax.mail

How to install JDK 11 under Ubuntu?

落爺英雄遲暮 提交于 2019-12-02 17:51:40
So Java 11 is out . Does anybody know how to install it (OpenJDK from Oracle) from the command line? I would like to see something like it was before for Oracle Java 10: sudo add-apt-repository ppa:linuxuprising/java sudo apt-get update sudo apt-get install oracle-java10-installer P. S. In the similar question proposed instruction: sudo apt-get install openjdk-11-jdk doesn't work. sudo apt-get install openjdk-11-jdk do work, only it installs OpenJDK 10 (very intuitive, isn't it). This package, sometimes, in undefined future, will became OpenJDK 11 (at least it's speculated to ). If you want to