title: Is there a way to load a fxml into jython logic code?
body: <p>I need to attach a GUI to python application. I've seen tkinter and Qt5, but they make too native GUIs. In fact, using the first one I cannot customize my elements with css, and the second one only support a subset of it. That's why I wonder if I can use a fxml file to create a nice interface.</p>
  <p>Then, I followed <a href="https://stackoverflow.com/questions/43018661/combine-javafx-with-python">this link</a> and tried to use jython. In one comment, they said: <em>&quot;you can manually add jfxrt.jar to your module search path if you are using a version of Java where it isn't available.&quot;</em> This is my case, but I have no idea about how to do it. I downloaded the <em>jfxrt.jar</em> and I put it in the same python script folder, but the same error occurs when I try <code>jython script.py</code>:</p>
  <pre><code>WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess (file:/usr/share/java/jnr-posix.jar) to method sun.nio.ch.SelChImpl.getFD()
  WARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper$ReflectiveAccess
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  Traceback (most recent call last):
    File &quot;./test.py&quot;, line 10, in &lt;module&gt;
      from javafx.application import Application
  ImportError: No module named javafx
  </code></pre>
  <p>What I executed is the code in the page previously linked. What can I do to solve this import error?</p>