java-11

Unable to import org.openqa.selenium.WebDriver using Selenium and Java 11

南楼画角 提交于 2019-12-17 06:54:12
问题 I'm new to selenium webdriver and java programming. Trying to resolve the error in eclipse 2018-12 "The import org.openqa.selenium.WebDriver cannot be resolved" Im using java 11, selenium standalone server 3.141.59 . Kindly help. I'm unable to import jar files Below is the screenshot 回答1: As per Can't compile Java9 module with selenium-java as dependency it seems the Selenium packages can't be compiled with Java 9 due to split packages and till May 15, 2018 Selenium wasn't fully compatible

Minimum Spring version compatible with Java 11

安稳与你 提交于 2019-12-17 04:07:32
问题 I need to upgrade an app to Java 11 very soon, I was wondering what's the minimum Spring version that is compatible with Java 11. I'm currently using Java 8 and Spring 4.2.7. 回答1: From their task tracker -- SPR-16391:Compatibility with JDK 11 . The compatibility of JDK 10, 11 is planned along with 5.1 GA release. JDK 11 is currently scheduled for September 2018. Not expecting any major changes beyond JDK 10 from our perspective, we should be able to fully support it in the 5.1 line already.

JDK 11. javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

*爱你&永不变心* 提交于 2019-12-14 03:10:42
问题 I'm migrating our platform to JDK 11, and one of the services has the following issue when calling to graph.facebook.com API: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://graph.facebook.com/v3.1/xxxxx/adaccounts": peer not authenticated; nested exception is javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated... Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated I've checked ca-certs on the machine,

Raven DB 4.1.2 hangs on streaming query in Java

眉间皱痕 提交于 2019-12-14 03:06:05
问题 I have a jax-rs-based REST service that I run on Tomcat 8.5 on 64bit Linux, using Java 11; this service connects to a RavenDB 4.1.2 instance, also on the same Linux machine. I make use of the streaming query to return the request result. I use Postman to submit the same request, and everything works well: the results are returned, and rather quickly. However - it only works 10 times. When I submit the same request as previously an 11th time, the results = currentSession.advanced().stream

Replace access to sun.misc.VM for JDK 11

≡放荡痞女 提交于 2019-12-13 12:26:25
问题 In OpenJDK 8, it was possible to access sun.misc.VM and call isDirectMemoryPageAligned and maxDirectMemory . isDirectMemoryPageAligned is used to size correctly the direct memory to allocate, as done by DirectByteBuffer. maxDirectMemory is used to report memory statistics as well as access giving the value configured for -XX:MaxDirectMemorySize . Internally, it will set a limit to the allowed consumption of direct memory. Since OpenJDK 9, the class VM has been moved to jdk.internal.misc and

how to compile Ignite application on CMake?

北慕城南 提交于 2019-12-13 03:45:47
问题 I did compile Ignite Application successfully. but The Binary didn't work. /tmp/tmp.Nw0IPD6ru3/cmake-build-debug-local-container/planet_engine: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory how can I make to it work? Also, I compiled C++ Examples successfully. such as ignite-compute-example. and, I execute that but I got an error message. An error occurred: JVM library is not found (did you set JAVA_HOME environment variable?) and I

How to improve gradle.build file?

折月煮酒 提交于 2019-12-12 23:57:20
问题 I'm not an experienced in Gradle or Groovy thus I would like to ask for some help and advice on how to improve my configuration. Introduction: I have a Spring Boot 2 RESTful web server that I want to Dockerize. Here is my Dockerfile: FROM openjdk:11-jre-slim VOLUME /tmp EXPOSE ${SERVER_PORT} ARG JAR_FILE=target/*.jar ADD ${JAR_FILE} messenger-auth-auth.jar ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/messenger-auth-auth.jar", "$@"] And my build.gradle file:

Gradle Migration to Java 11

孤人 提交于 2019-12-12 17:31:22
问题 In the Gradle build file below the fileTree dependency is loading some local jars, but compilation fails with errors like 'package groovy.text is declared in the unnamed module, but module groovy.text does not read it'. I am not sure where the problem reside, could it be that I have to add also something to the compileJava task ? The current configuration is used for a JavaFx application, as discussed in this thread buildscript { repositories { mavenCentral() } dependencies { classpath 'com

maven with JDK11: javac: invalid flag: --release

China☆狼群 提交于 2019-12-12 14:16:01
问题 I'm trying to set up a simple maven project with java 11. As I want to keep JAVA_HOME to be version 8, I'm using maven-toolchains-plugin to make maven use jdk11 for this project. While maven successfully finds a matching toolchain for jdk-11.0.1, I keep getting " javac: invalid flag: --release". What am I doing wrong? Here are the plugin configurations: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration>

Upgrading to Java 11 from Java 8 - package sun.util does not exist

允我心安 提交于 2019-12-12 09:57:44
问题 I'm trying to migrate an application from Java 8 to Java 11. When I try and build the project in IntelliJ I get a package sun.util does not exist error? Any ideas on what's up? Thanks! 回答1: Packages com.sun.* and sun.* hold internal stuff, and should not be used by thirdparty applications (like yours probably) in general case. Since in java 9 the module system has been introduced, now Oracle "protect" these packages even in compile time. So the obvious way is to get rid of this dependency in