java-9

Where is JRE folder in Java 9?

≡放荡痞女 提交于 2020-01-29 13:36:25
问题 Where is JRE folder in Java 9? I have seen in some site that JRE is present in a separate distribution folder. But where it is located? 回答1: The JDK and JRE run-time images have been restructured in JDK 9. The JDK run-time image no longer includes a "jre" sub-directory. A summary of the restructuring is documented in the JDK 9 release notes (Modular Run-Time Images note). JEP 220 documents the motivations and all the details of the new layout. The changes have been in JDK 9 early access

Where is JRE folder in Java 9?

孤街浪徒 提交于 2020-01-29 13:32:53
问题 Where is JRE folder in Java 9? I have seen in some site that JRE is present in a separate distribution folder. But where it is located? 回答1: The JDK and JRE run-time images have been restructured in JDK 9. The JDK run-time image no longer includes a "jre" sub-directory. A summary of the restructuring is documented in the JDK 9 release notes (Modular Run-Time Images note). JEP 220 documents the motivations and all the details of the new layout. The changes have been in JDK 9 early access

Private interface methods, example use-case?

社会主义新天地 提交于 2020-01-29 03:18:47
问题 "Support for private methods in interfaces was briefly in consideration for inclusion in Java SE 8 as part of the effort to add support for Lambda Expressions, but was withdrawn to enable better focus on higher priority tasks for Java SE 8. It is now proposed that support for private interface methods be undertaken thereby enabling non abstract methods of an interface to share code between them." So says the specification for http://openjdk.java.net/jeps/213 and says in bug report https:/

Using CcontrolsFX's SpreadsheetView in Java 9

穿精又带淫゛_ 提交于 2020-01-25 07:22:06
问题 I've got an application written in Java 8 with ControlsFX 8.40.14. I run the app under Java 9 (jdk-9.0.1 to be precise) and I got the following exception when the app tries to display SpreadsheetView component. Exception in thread "JavaFX Application Thread" java.lang.NoSuchMethodError: javafx.scene.control.TableColumn.impl_setReorderable(Z)V at org.controlsfx.control.spreadsheet.SpreadsheetView.getTableColumn(SpreadsheetView.java:2216) at org.controlsfx.control.spreadsheet.SpreadsheetView

Missing slash on Java 9’s LogManager.getLogger() / Logger.getHandlers() seems to cause an exception

放肆的年华 提交于 2020-01-23 03:20:08
问题 I am seeing a problem with an Applet on Windows, running Java 9, when I am trying to create a log file C:\Users\cardal\ApplicationLog.html. The code works fine on Java 8. The code does LogManager.readConfiguration () and LogManager.getLogger(). Then Logger.getHandlers() hits an exception. It looks like the first slash is getting removed by mistake: Can't load log handler "java.util.logging.FileHandler" java.nio.file.NoSuchFileException: C:Users\cardal\ApplicationLog.html.lck java.nio.file

Missing slash on Java 9’s LogManager.getLogger() / Logger.getHandlers() seems to cause an exception

纵然是瞬间 提交于 2020-01-23 03:20:07
问题 I am seeing a problem with an Applet on Windows, running Java 9, when I am trying to create a log file C:\Users\cardal\ApplicationLog.html. The code works fine on Java 8. The code does LogManager.readConfiguration () and LogManager.getLogger(). Then Logger.getHandlers() hits an exception. It looks like the first slash is getting removed by mistake: Can't load log handler "java.util.logging.FileHandler" java.nio.file.NoSuchFileException: C:Users\cardal\ApplicationLog.html.lck java.nio.file

How to find automatic modules with javapackager

不羁的心 提交于 2020-01-21 05:09:08
问题 I am bundling an app using javapackager wherein the main jar is a module with a module-info.class but it relies on many other jars that are plain old jars, so I call them out as automatic modules in module-info.java. However, javapackager complains about not being able to find them. How do I make it find the jar files for automatic modules? Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.FindException: Module rcf not found, required by com.username.commander.ui Exception

Unable to process file module-info.class within a Java9 project results in ClassFormatException

蓝咒 提交于 2020-01-20 07:00:21
问题 Trying to Run Vaadin 8.1 app under Java 9 prerelease in IntelliJ 2017.2.2 I was able to build a vaadinjavanine.war using a fresh project and host the same using Jetty Server. I ended up trying to deploy the generated war to a tomcat server. But, during the startup of the tomcat server, I am getting the following exception: 21-Aug-2017 22:53:38.830 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsFile Unable to process file [/Library/Tomcat/apache

Is sun.misc.Unsafe become public in JDK9?

不问归期 提交于 2020-01-20 04:58:28
问题 I just tried JDK9 and found out that sun.misc.Unsafe is now containing not a native method, but delegates them to some jdk.internal.misc.Unsafe , for example: @ForceInline public int getInt(Object o, long offset) { return theInternalUnsafe.getInt(o, offset); } The latest, in turn, looks actually like the old sun.misc.Unsafe , but now the methods are annotated with some annotation: @HotSpotIntrinsicCandidate public native void putObject(Object o, long offset, Object x); So, is it "safe" to use

Swagger HK2 service reification failed

瘦欲@ 提交于 2020-01-14 07:46:08
问题 This application use Swagger (swagger-jersey2-jaxrs, 1.5.18), Spring-boot (spring-boot-starter-jersey, 2.0.1.RELEASE) and Java 9. When application ran Swagger UI loads without an issue. But I can see following warning in the logs. Appreciate any idea to solve this. I have tried upgrading versions but couldn't help. 2018-04-17 14:27:19.792 WARN 24810 --- [nio-7070-exec-5] org.glassfish.jersey.internal.Errors : The following warnings have been detected: WARNING: HK2 service reification failed