#Can someone help me configure javaFX in eclipse? it says all my javaFX jars are not accessible even

37 messages · Page 1 of 1 (latest)

dusky raptor
#

even tho they are in my class path

alpine cipherBOT
#

This post has been reserved for your question.

Hey @dusky raptor! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

idle knoll
supple pond
#

iirc, you need to add them to module path too

dusky raptor
#

I'm using javaFX sdk which I downloaded and installed via eclipse, its called e(fx)clipse. However, if i don't add my jars from my external folder it says type unresolved, when I add the jars it says not accessible

supple pond
#

try "Project" > "Clean..."

dusky raptor
#

I did...

#

wdym it has to be in modul path?

#

module*

#

If I add the jars to module path it says duplicate entry for every jar because it's also in the class path

supple pond
#

and in module-info.java add requirements to access the needed modules

dusky raptor
#

but ill try

supple pond
#

and export your own package, so javafx will be able to rich the constructor of your own class

dusky raptor
#

how do i add requirements to access the modules?

#

no more redlines in my code

supple pond
#

in module-info.java put code like this:```java
module yourModuleName {
exports your_package;
requires javafx.graphics;
requires javafx.controls;

}```

supple pond
supple pond
#

if doesn't work - then edit your module-info.java file

#

are you sure you downloded right libs?

dusky raptor
#

if I say yes will you have any other idea what i may be?

supple pond
#

nope. wrong sdk or wrong architecture (32/64 bits)

dusky raptor
#

so i just downloaded x64 SDK JavaFX build 16 from jdk.java.net for windows

#

all i have to do is replace the jars in my module path?

supple pond
#

yeah

dusky raptor
#

no quantumRenderer error this time

#

I think it actually has to do with my code, the loadCardImages method because the url im passing is empty

supple pond
#

yeah