java-11

How to use WebServices on Java 11? package javax.jws does not exist [duplicate]

帅比萌擦擦* 提交于 2020-01-03 15:19:11
问题 This question already has answers here : Replacements for deprecated JPMS modules with Java EE APIs (7 answers) Closed 11 months ago . I imigrate my aplication to AdoptOpenJDK11, I have found some problems, like "package javax.jws does not exist", I already configure build path with jar "jsr181-api.jar", it's a webApplication, how I fix it ? Have something new about webservices on AdoptOpenJDK 11? @WebService @SOAPBinding(style = Style.RPC) // this tags doenst work output: error: package

How to fix jvm options exports javafx 11 to com.jfoenix on gradle idea?

柔情痞子 提交于 2020-01-03 03:13:08
问题 It's been 3 days that I look on the internet how to fix this on gradle Caused by: java.lang.IllegalAccessError: class com.jfoenix.skins.JFXTabPaneSkin (in module com.jfoenix) cannot access class com.sun.javafx.scene.control.behavior.TabPaneBehavior (in module javafx.controls) because module javafx.controls does not export com.sun.javafx.scene.control.behavior to module com.jfoenix On simple idea projects I was adding --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com

Java 11: Implementation of JAXB-API has not been found on module path or classpath

只谈情不闲聊 提交于 2020-01-02 05:52:34
问题 I have a little project which does throw an exception when i let it run. The problem is here (TestObject.java): final JAXBContext jaxbContext = JAXBContext.newInstance(...); I really do not understand why this throws the exception. I also created a test which works like a charm (TestTest.java). Please forgive me the names, but this is just a small test application to get this working with java 11. I followed this: javax.xml.bind.JAXBException Implementation of JAXB-API has not been found on

Gradle for Java 11 with Modules

雨燕双飞 提交于 2020-01-02 04:08:12
问题 I'm trying to run a sample JavaFX app on Mac OS. build.gradle apply plugin: 'java' apply plugin: 'application' repositories { mavenCentral() } dependencies { compile "org.openjfx:javafx-base:11" compile "org.openjfx:javafx-graphics:11" compile "org.openjfx:javafx-controls:11" } compileJava { doFirst { println "CLASSPATH IS $classpath.asPath" options.compilerArgs = [ '--module-path', classpath.asPath, '--add-modules', 'javafx.graphics' ] classpath = files() } } Java class package com.test;

problem in compile time when using “var” in jdk 11 [duplicate]

巧了我就是萌 提交于 2020-01-01 13:14:15
问题 This question already has an answer here : How to avoid IntelliJ to reset language level? (1 answer) Closed last year . when I use the word "var" the IDE recognize the command, but when I compile the code, it gives me an error: Error:(10, 17) java: cannot find symbol symbol: class var location: class Exp the code: public final class Exp { public static void main(final String[] args) { var x=5; } } So why does it happen? How can i solve it? the pics: 回答1: Thanks to @Marv the solution was

eclipse RCP 2018-09 + OpenJDK 11 + tycho: how to package an application with the JRE?

瘦欲@ 提交于 2020-01-01 09:50:50
问题 Currently I'm using tycho to build and package my eclipse RCP app with java 8 and eclipse 4.8, (JMSToolBox) For windows distributions, the tycho build process "copies" the JRE v8 (Oracle) into the distribution package in the "jre" directory via an ant task I'm in the process of upgrading to eclipse RCP 2018-09 and Java 11 (OpenJDK) 2 problems arise: OpenJDK 11 does not provide a JRE OOTB. As I do not want to bundle the 300MB of the full JDK in the distribution, is there a way to embed only

Java 11 + Chrome/Firefox = TLS decrypt error

牧云@^-^@ 提交于 2020-01-01 04:34:25
问题 I'm currently migrating some server software from Java 8 to Java 11. Everything works fine except for the fact that TLS connections are refused when my server runs on Java 11 (and only 11). I.e., everything works when running on up to and including Java 10. As soon as I switch to Java 11 (with absolutely no code changes inbetween, of course) I get a TLS decrypt error. My application works fine otherwise when I disable SSL/TLS or when I use IE/Edge to connect to my server (via TLS). When using

JavaFX applications built to target Java 8 - How to keep running with Java 11?

早过忘川 提交于 2019-12-31 03:36:09
问题 I recently learned about JavaFX not being included in Java 11, and have a question about how this will work. Right now, I maintain an application that targets Java 8, uses mostly Swing but some JavaFX, and has a non-developer user base. Some of those users are on older operating systems, so I'd like to continue targeting Java 8. However, Java 11 comes out next month, and I'm concerned that some of the users on newer operating systems will upgrade to Java 11, and the JavaFX components of the

SSLHandshakeException with jlink created runtime

本小妞迷上赌 提交于 2019-12-30 18:42:30
问题 I've got a dropwizard app, which runs fine with the standard JRE. I've tried creating a runtime using jlink which is considerably smaller: /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/bin/jlink --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.compiler,java.desktop,java.instrument,java.logging,java.management,java.naming,java.scripting,java.security.jgss,java.sql,java.xml,jdk.attach,jdk.jdi,jdk.management,jdk.unsupported --output jre If I

Difference between isEmpty() and isBlank() Method in java 11

痴心易碎 提交于 2019-12-30 11:15:16
问题 Java 11 has added A new instance method isBlank() to java.lang.String class. What's the basic difference between the existing isEmpty and newly added isBlank() method? 回答1: isEmpty() The java string isEmpty() method checks if this string is empty. It returns true , if the length of the string is 0 otherwise false e.g. System.out.println("".isEmpty()); // Prints - True System.out.println(" ".isEmpty()); //Prints - False Java 11 - isBlank() The new instance method java.lang.String.isBlank()