I can't have the cache library in "C:\Users\anpaumal\"
. I would like to redirect it to C:\Program Files\OpenJdk
This is my pom:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-
4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>16</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>11</maven.compiler.release>
<javafx.version>16</javafx.version>
<javafx.maven.plugin.version>0.0.8</javafx.maven.plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>${maven.compiler.release}</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${javafx.maven.plugin.version}</version>
<configuration>
<mainClass>org.openjfx.hellofx.App</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>
I'm getting this error code:
java.lang.UnsatisfiedLinkError: C:\Users\anpaumal\.openjfx\cache\16\prism_d3d.dll
The DLL is blocked by a safety principle (can't execute DLLs from there), which I'm not allowed to change...
I've tried to configure run command like this:
-Djavafx.cachedir="C:\Program Files\OpenJDK"
-Djavafx.verbose=true
And like this:
-Djavafx.cachedir=C:\Program Files\OpenJDK
-Djavafx.verbose=true
I've also tried to set the environment variabes in run configurations (using eclipse): javafx.cachedir
to C:\Program Files\OpenJDK
But I will always get the same error code:
java.lang.UnsatisfiedLinkError: C:\Users\anpaumal\.openjfx\cache\16\prism_d3d.dll
Is it possible to do what I want to do?