Notes on what to do when a WebView ClassNotFoundException occurs in JavaFX 12

Introduction

When using WebView, when running with JDK12 + OpenJFX12 Since ClassNotFoundException was issued, it is a memo of the countermeasure.

Actions on Eclipse

I added the following to [Run Configurations ...]-[Arguments]-[VM arguments] and the error disappeared.

--module-path "C:\Program Files\Java\javafx-sdk-12\lib" 
--add-modules javafx.controls,javafx.web
--add-exports javafx.base/com.sun.javafx.logging=ALL-UNNAMED
--add-exports javafx.graphics/com.sun.glass.ui=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.glass.utils=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.font=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.geom.transform=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED 
--add-exports javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.text=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.util=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.prism=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.prism.paint=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.scenario.effect=ALL-UNNAMED

Reference URL

https://www.reddit.com/r/JavaFX/comments/a3xjxy/how_to_run_controlsfx_java_11_and_javafx_11/ https://stackoverflow.com/questions/53215814/javafx11-java-lang-classnotfoundexception-com-sun-media-jfxmedia-events-players/53275389?noredirect=1#comment93434728_53275389

Recommended Posts

Notes on what to do when a WebView ClassNotFoundException occurs in JavaFX 12
What to do when a javax.el.PropertyNotWritableException occurs
What to do when an UnsupportedCharsetException occurs in a lightweight JRE
What to do when IllegalStateException occurs in PlayFramework
What to do if ClassNotFoundException occurs when starting Tomcat
What to do when a null byte error occurs
What to do when javax.batch.operations.JobStartException occurs
What to do if a SAX Parser error occurs when using Liferay 7 / DXP on AWS
What to do when Blocked Host: "host name" appears in Ruby on Rails
What to do and how to install when an error occurs in DXRuby 1.4.7
Notes on what to do when EC2 is set up with t2.micro
What to do when "call'Hoge.connection' to establish a connection" appears on rails c
What to do when rails creates a 〇〇 2.rb file
Error ExecJS :: RuntimeUnavailable: What to do when it occurs
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
What to do if you get a port error when docker-compose up on Mac
What to do if you get a java.io.IOException in GlassFish
What to do when Method not found in f: ajax
What to do when a could not find driver appears when connecting to a DB in a Docker environment
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
What to do when Rails on Docker does not reflect controller changes in the browser
[Rails 6] What to do when a missing a template error occurs after introducing haml [Super easy]
What to do if you get a gcc error in Docker
What to do if you get a DISPLAY error in gym.render ()
What to do when you become a Problem During Content Assist
What to do when you run into a docker-compose node_modules problem
What to do if you get a JNI shared library error when trying to build in Eclipse
What to do if an error occurs when doing npm install axios in React + Typescript project
What to do when undefined method ʻuser_signed_in?'
What to do if you get a groovy warning in Thymeleaf Layout
What to do when CentOS cannot be started with VirtualBox on Catalina
What to do if an error occurs when nokogiri enters when bundle install
no space left on device What to do if an error occurs
What to do if tomcat process remains when tomcat is stopped in eclipse
What to do if you get a MiniMagick vulnerability alert on GitHub
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if an error occurs in VS Code when importing a django module or your own module installed by pip install
What to do when you think you can't do Groovy-> Java in IntelliJ IDEA CE
<f: ajax> Unable to attach <f: ajax> to non-ClientBehaviorHolder What to do when you become a parent
What to do when the value becomes null in the second getSubmittedValue () in JSF Validator
What to do if Command line is too long appears when building a gradle project in Intellij IDEA
Androd: What to do about "The Realm is already in a write transaction in"
What to do when "Nil location provided. Can't build URI." Appears on CarrierWave
What to do when debugging "Source not found"
What to do when is invalid because it does not start with a'-'
Notes on how to write comments in English
Keyboard when tapping a text field in WebView
What to do when booting Ubuntu on WSL2 and getting "Process terminated with code 1"
[React.useRef] What to do when the latest state cannot be referenced in the event listener
What to do if you get a wrong number of arguments error in binding.pry
What to do when "Fail to load the JNI shared library" is displayed in Eclipse
What to do when Address already in use is displayed after executing rails s
What Android, Kotlin beginners did in a month and what they were able to do
What to do when The SSL certificate has expired
What to do when JSF tags do not become HTML
What to do if TextToSpeech doesn't work on Android 11
A memorandum when trying to create a GUI using JavaFX
What to do if an ActionController :: UnknownFormat error occurs
What to see when IntelliJ doesn't start on Mac
What I learned when building a server in Java
What to do if password authentication fails in Docker/Postgres