Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resolve symbol 'JavaFXThemes' and Cannot resolve symbol 'MaterialFXStylesheets' #383

Open
dddryinside opened this issue Jul 28, 2024 · 6 comments

Comments

@dddryinside
Copy link

dddryinside commented Jul 28, 2024

I can't figure out why MaterialFXStylesheets and JavaFXThemes are compiled into bytecode (not into Java code). Because of this, I can't access them in my program. Here is this code, which is listed in the instructions on GitHub:

UserAgentBuilder.builder()
    .themes(JavaFXThemes.MODENA) 
    .themes(MaterialFXStylesheets.forAssemble(true))  
    .setDeploy(true) 
    .setResolveAssets(true)
    .build() 
    .setGlobal(); 

It causes legitimate errors: Cannot resolve symbol 'JavaFXThemes' and Cannot resolve symbol 'MaterialFXStylesheets'.
Maybe I don't understand something, I've just been trying to solve this problem for many days and nothing has worked out. I would be very grateful for help!

@IbnTaymiyyah
Copy link

Same error, I am still looking for the solution :)

@IbnTaymiyyah
Copy link

I found a solution if you still need it.

  1. Download the MaterialFX repo
  2. Open it in your IDE
  3. On the left side, navigate to the materialfx folder -> build -> libs
    4.Take the .jar file and use it in your project instead of the Maven .jar.

this worked for me.

Copy link

stale bot commented Aug 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 26, 2024
@GrolarDan
Copy link

Hi, which library version do you use. I'm using 11.17.0 where it works.
If I remember good the 11.17.0 version fixed the need downloading the .jar file.

@dddryinside
Copy link
Author

Hi, which library version do you use. I'm using 11.17.0 where it works. If I remember good the 11.17.0 version fixed the need downloading the .jar file.

I use the last version, 11.17.0

@GrolarDan
Copy link

Hi, which library version do you use. I'm using 11.17.0 where it works. If I remember good the 11.17.0 version fixed the need downloading the .jar file.

I use the last version, 11.17.0

That's strange because in my application it works.

@stale stale bot removed the stale label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants