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 find dependencies #66

Open
sksamuel opened this issue May 18, 2022 · 3 comments
Open

Cannot find dependencies #66

sksamuel opened this issue May 18, 2022 · 3 comments

Comments

@sksamuel
Copy link

JDK 17, cannot get this to work due to missing javafx deps
java.lang.ClassNotFoundException: javafx.scene.image.Image
Can't even find where these are.

Trying to import:
api("org.openjfx:javafx-fxml:11.0.2")
api("org.openjfx:javafx-web:11.0.2")

Just brings back empty jars.

@dcrough-ownum
Copy link

@auszig
Copy link

auszig commented Jul 18, 2022

I ran into this issue as well just now. I was able to solve it thanks to this example repository. Basically, you need at least the following in your build.gradle:

plugins {
    id 'java'
    id 'org.openjfx.javafxplugin' version '0.0.13'
}

repositories {
    mavenCentral()
}

javafx {
    version = '14'
    modules = ['javafx.controls']
}

dependencies {
    implementation group: 'dev.brachtendorf', name: 'JImageHash', version: '1.0.0'
}

@lynnwilliam
Copy link

this repo should have an option to work Without JavaFX, because some people just want to use the algorithms

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

4 participants