Posts

Showing posts with the label java-9

How to migrate JavaFX app from JDK 1.8 to JDK 10 [duplicate]

How to migrate JavaFX app from JDK 1.8 to JDK 10 [duplicate] This question already has an answer here: I have a legacy JavaFX app which compiles and runs correctly on JDK 1.8. To move to JDK 10 I've added these to the pom.xml: <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0</version> </dependency> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <release>10</release> <compilerArgs> <arg>--add-modules</arg> <arg>javax.xml.bind</arg> </compilerArgs> </configuration> </plugin> Running mvn clean install -DskipTests with JDK 10.0.1 and mvn 3.3.9 gives mvn clean install...

jshell finishes silently if the user tries to source a script with some error

jshell finishes silently if the user tries to source a script with some error Follow these steps to reproduce: Create a '.jsh' script with some kind of error(missing import, syntax error etc) open a jshell jshell /open the erroneous script /open The /open command will finish silently. /open The elements declared in that script won't be in the current namespace. Is there a way to force jshell to spit out the error and it's location in the script if an erroneous script is loaded? Setting the feedback level to verbose doesn't change anything. jshell verbose 1 Answer 1 jshell imports a lot of classes on startup and any subsequent snippet (even if load from file) can use them, SO few of the missing imports can be taken care here. --no-startup can be used to disable this behavior. By clicking "Post Your Answer", you acknowledge ...