java-11

Build executable JAR with JavaFX11 from maven

浪尽此生 提交于 2019-12-30 10:40:29
问题 I've made a Java app which uses Maven, JavaFX and some other dependencies. Before, it was easy to build an executable jar but since Java11 is modular and does not include JavaFX i just can't build a working one. I've already tried a lot of things but i don't know what i'm supposed to do now. My pom.xml <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <verbose>true</verbose> <

How to get tools.jar for OpenJDK 11 on Windows?

痴心易碎 提交于 2019-12-30 06:06:07
问题 Background : I am trying to build Hadoop for Windows using instructions found here. I have OpenJDK 11 and have ran into the following issue while running mvn package : Could not resolve dependencies for project org.apache.hadoop:hadoop-annotations:jar:2.5.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path C:\Program Files\Java\jdk-11.0.1\..\lib\tools.jar I realised no tools.jar exists in the Windows build of OpenJDK 11. Would I have to build this from source as

How to install OpenJDK 11 on Windows?

一个人想着一个人 提交于 2019-12-29 10:09:18
问题 In the past, Oracle used to publish an executable installers for Windows that would: Unpack files Add registry keys indicating the installed version and path Add the JRE to the system PATH Register an uninstaller with Windows. As of Java 11, the Oracle's free version of Java (Oracle OpenJDK) doesn't seem to include an installer. It is just a zip file containing the binaries. How are we supposed to install OpenJDK 11 on Windows seeing as the aforementioned integrations are no longer there?

Automatic module VM options for jar file

不打扰是莪最后的温柔 提交于 2019-12-24 20:22:24
问题 So I am currently playing around with the new changes in Java 11 and thus the external OpenJFX SDK. However I guess it would be much easier for me to distribute one single jar file and let users download their required SDK stuff on their own and put it into a predefined folder inside the same folder as my jar. Now I am asking myself whether it is possible to automatically add the required VM options on launch of my jar without requiring the users of my program to launch it from the console

JDK 11 with JAXB and JAXWS problems

自古美人都是妖i 提交于 2019-12-24 10:46:10
问题 My goal is to migrate a Web Services application that currently works with Java 8 to Java 11. Because the JAXB and JAX-WS components have been removed from JDK11, it is necessary to add the appropriate libraries, either using Maven or Jar libraries. There is a wide variety of recommendations and suggestions from others who have encountered similar issues, but I am not able to find a combination that does not have errors. pom.xml <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx

Error running maven surefire test plugin Java 11

与世无争的帅哥 提交于 2019-12-23 20:55:05
问题 I am running some tests for Spring Boot app in Team City using the maven surefire plugin version 2.22.1. Spring Boot version is 2.1.2. I have specified in the configuration to use a forked Java 11 jvm as follows: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkCount>1</forkCount> <jvm>${jdk11.home}/bin/java</jvm> <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> </configuration> </plugin> When running Team City I get the

Bouncy castle security provider doesn't load under Java 11/12

拈花ヽ惹草 提交于 2019-12-23 20:15:15
问题 I'm trying to do something that's supposed to be trivial but there is a problem that I'm facing. The bouncy castle security provider won't load when after migrating a JavaFx application from Java 8 to Java 11 (tried Java 12 as well, same results). It's a Maven project that I updated to use Java 11 compliant plugins. It compiles fine but when running I get this in the terminal window: jar .Launcher java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect

Getting noclassfoundexception : java.sql.SQLException in intellij idea for jdk 11

眉间皱痕 提交于 2019-12-23 08:34:04
问题 I am using latest version of Intellij Idea and set jdk as 11. When I execute my project it throws exception noclassfoundexception : java.sql.SQLException. In java compiler settings in Intellij I have mentioned project bytecode version as 11. In project structure settings too, I have set the module jdk as 11. 回答1: Try to change command line shortening method to "JAR manifest". I had exactly the same issue after upgrading my project from Java 8 to Java 11. It looks like it is IntelliJ IDEA bug.

Maven 3.8.0 Compiler - Fatal error compiling: release version 11 not supported

杀马特。学长 韩版系。学妹 提交于 2019-12-23 07:17:06
问题 I'm unable to build using Java 11 with the latest version of the maven-compiler-plugin. pom.xml: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <release>11</release> </configuration> </plugin> <plugins> <build> when I try to build using Maven: ➜ mvn clean compile [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------

Java JDK 11 Breaking Old Jars/Programs

大憨熊 提交于 2019-12-22 17:57:14
问题 It is to my understanding that Java JREs are backwards compatible, if you write a program in Java (JDK) 7, it will run with Java (JRE) 8. I have a couple of programs I developed in Java 8, and have .jar and EXE files that I built when I finished them, and they always ran fine. However, after installing Java JDK 11 (11.0.2), these old .jar files break... A couple of them still run, but their GUIs have expanded, with buttons and images being bigger than before, and in some cases blurry One