Reputation: 3
My project error is
Graphics Device initialization failed for : d3d, sw.
(It's a long err message and you see only first line)
Process finished with exit code 1
Thirdly, my project is build by Maven. Pom.xml is like
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>az.The_Best</groupId>
<artifactId>Student_Teacher_Registration_App</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>23</maven.compiler.source>
<maven.compiler.target>23</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- MySQL Connector -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.0.33</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/java/lib/mysql-connector-j-8.0.33.jar</systemPath>
</dependency>
<!-- JavaFX 23 -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>23.0.2</version> <!-- JavaFX version -->
</dependency>
<!-- JavaFX FXML (Optional, if you are using FXML files) -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>23.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- JavaFX Maven Plugin -->
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version>
<configuration>
<mainClass>az.The_Best.MainApp</mainClass> <!-- Replace with your main class -->
</configuration>
</plugin>
</plugins>
</build>
</project>
I think about Maven is OK, the problem is about graphics. I tried to get the solution from AI, Google and stackoverflow.com, but I didn't find my real problem.
BTW, I recreated my project and deleted whole project and creating new project or new testing Maven + JavaFX project again, I failed in every case.
Upvotes: 0
Views: 29