JImageHash icon indicating copy to clipboard operation
JImageHash copied to clipboard

Cannot find dependencies

Open sksamuel opened this issue 2 years ago • 3 comments

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.

sksamuel avatar May 18 '22 03:05 sksamuel

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'
}

auszig avatar Jul 18 '22 04:07 auszig

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

lynnwilliam avatar Nov 19 '22 10:11 lynnwilliam