XR3Player icon indicating copy to clipboard operation
XR3Player copied to clipboard

module java.base does not open java.lang.reflect to module XR3Player

Open HelgeStenstrom opened this issue 5 years ago • 7 comments

When I start XR3Player (current master branch), I get the following written to the console, including error messages. I'm running in IntelliJ IDEA Community 2019.2.

Entered JavaFX Application Start Method Path :-> /Users/helge/Documents/GitHub/XR3Player/target/classes/ Stream player Status -> NOT_SPECIFIED Stream player Status -> NOT_SPECIFIED Stream player Status -> NOT_SPECIFIED java.lang.RuntimeException: java.lang.IllegalAccessException: module java.base does not open java.lang.reflect to module XR3Player at XR3Player/com.goxr3plus.xr3player.application.MainLoader.makeNonFinal(MainLoader.java:428) at XR3Player/com.goxr3plus.xr3player.application.MainLoader.lambda$startPart2$9(MainLoader.java:358) at java.base/java.lang.Thread.run(Thread.java:835) Caused by: java.lang.IllegalAccessException: module java.base does not open java.lang.reflect to module XR3Player at java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:206) at XR3Player/com.goxr3plus.xr3player.application.MainLoader.makeNonFinal(MainLoader.java:425) ... 2 more XR3Player ready to rock!

HelgeStenstrom avatar Aug 25 '19 20:08 HelgeStenstrom

Yeah it's because i am trying to use reflection yo overpass JxBrowser license like i did always but reflection doesn't work in Java 13 :'(

goxr3plus avatar Aug 25 '19 20:08 goxr3plus

@HelgeStenstrom I literally don't know what to do with the Chromium Browser , they don't have anymore open source license for JxBrowser . It seems i will use my own library https://github.com/goxr3plus/JavaFX-Web-Browser again.

But it's very limited because its a JavaFX Browser not based on Chromium .... do you recommend me something ? It's like a big feature of XR3Player which is missing now due to that damn licenses they have.

goxr3plus avatar Aug 28 '19 11:08 goxr3plus

I have no experience with that, and I don't know why a built in web-browser is needed in this application. Sorry.

HelgeStenstrom avatar Aug 28 '19 18:08 HelgeStenstrom

I am using JxBrowser so the user can navigate like he/she has Google Chrome inside XR3Player and i am using it in various things like dropbox authentication with XR3Player , download the latest version not from the repository but from here and have a look at the Browser :)

https://goxr3plus.github.io/xr3player.io/

goxr3plus avatar Aug 29 '19 12:08 goxr3plus

Please take a look at my new article that explain how to export all modules to all modules at runtime in Java 16 and later without using any JVM parameter

JJBRT avatar Sep 20 '21 11:09 JJBRT

@JJBRT Thanks mate :)

goxr3plus avatar Oct 13 '21 17:10 goxr3plus

Please get the latest commit i just pushed

goxr3plus avatar Mar 31 '22 20:03 goxr3plus