Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. Error:(3, 26) java: cannot access javafx.application.Application
  2. bad class file: C:Program FilesJavajavafx-sdk-11.0.2libjavafx.graphics.jar(javafx/application/Application.class)
  3. class file has wrong version 54.0, should be 52.0
  4. Please remove or make sure it appears in the correct subdirectory of the classpath.
  5.  
  6. <?xml version="1.0" encoding="UTF-8"?>
  7. <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">
  8. <modelVersion>4.0.0</modelVersion>
  9.  
  10. <groupId>org.openjfx</groupId>
  11. <artifactId>hellofx</artifactId>
  12. <version>1.0-SNAPSHOT</version>
  13. <packaging>jar</packaging>
  14.  
  15. <name>hellofx</name>
  16.  
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <mainClass>org.openjfx.MainApp</mainClass>
  20. </properties>
  21.  
  22. <organization>
  23. <!-- Used as the 'Vendor' for JNLP generation -->
  24. <name>Your Organisation</name>
  25. </organization>
  26.  
  27. <dependencies>
  28. <dependency>
  29. <groupId>org.openjfx</groupId>
  30. <artifactId>javafx-controls</artifactId>
  31. <version>11.0.2</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.openjfx</groupId>
  35. <artifactId>javafx-fxml</artifactId>
  36. <version>11.0.2</version>
  37. </dependency>
  38. </dependencies>
  39. <build>
  40. <plugins>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-compiler-plugin</artifactId>
  44. <version>3.8.0</version>
  45. <configuration>
  46. <release>11</release>
  47. </configuration>
  48. </plugin>
  49. <plugin>
  50. <groupId>org.codehaus.mojo</groupId>
  51. <artifactId>exec-maven-plugin</artifactId>
  52. <version>1.6.0</version>
  53. <executions>
  54. <execution>
  55. <goals>
  56. <goal>java</goal>
  57. </goals>
  58. </execution>
  59. </executions>
  60. <configuration>
  61. <mainClass>org.openjfx.MainApp</mainClass>
  62. </configuration>
  63. </plugin>
  64. </plugins>
  65. </build>
  66.  
  67. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement