Guest User

Untitled

a guest
Dec 12th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. jar {
  2. manifest {
  3. attributes(
  4. 'Main-Class': 'checkmydigitalfootprint.MainApp'
  5. )
  6. }
  7. from {
  8. configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
  9. }
  10. }
  11.  
  12. java -jar CheckMyDigitalFootprint.jar
  13.  
  14. java -jar CheckMyDigitalFootprint.jar --module-path="/users/joseph/eclipse-workspace/javafx-sdk-11.0.1/lib" --add-modules=javafx.controls
  15.  
  16. java -jar CheckMyDigitalFootprint.jar --module-path="/users/joseph/eclipse-workspace/javafx-sdk-11.0.1/lib" --add-modules=javafx.controls --add-exports=javafx.graphics/com.sun.javafx.util=ALL-UNNAMED --add-exports=javafx.base/com.sun.javafx.reflect=ALL-UNNAMED --add-exports=javafx.base/com.sun.javafx.beans=ALL-UNNAMED --add-exports=javafx.graphics/com.sun.glass.utils=ALL-UNNAMED --add-exports=javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED
  17.  
  18. Error: JavaFX runtime components are missing, and are required to run this application
  19.  
  20. plugins {
  21. id 'application'
  22. id 'org.openjfx.javafxplugin' version '0.0.5'
  23. id 'eclipse'
  24. }
  25.  
  26. repositories {
  27. mavenCentral()
  28. }
  29.  
  30. dependencies {
  31. /* uncomment for cross-platform jar: */
  32. // compile "org.openjfx:javafx-graphics:11:win"
  33. // compile "org.openjfx:javafx-graphics:11:linux"
  34. compile "org.openjfx:javafx-graphics:11:mac"
  35. compile 'com.jfoenix:jfoenix:9.0.8'
  36. compile 'org.json:json:20180813'
  37. compile 'com.google.api-client:google-api-client:1.23.0'
  38. compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
  39. compile 'com.google.apis:google-api-services-gmail:v1-rev83-1.23.0'
  40. compile group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '2.3.1'
  41. compile 'com.sun.activation:javax.activation:1.2.0'
  42. compile group: 'com.sun.mail', name: 'javax.mail', version: '1.6.2'
  43. testCompile "org.testfx:testfx-core:4.0.15-alpha"
  44. testCompile "org.testfx:testfx-junit:4.0.15-alpha"
  45. }
  46.  
  47. javafx {
  48. modules = [ 'javafx.controls', 'javafx.fxml' ]
  49. }
  50.  
  51. run {
  52. if (osdetector.os == 'windows') {
  53. // Temporal fix for Eclipse with JDK 1.8 and Windows
  54. systemProperty "java.library.path", "C:tmp"
  55. }
  56. }
  57.  
  58. jar {
  59. manifest {
  60. attributes(
  61. 'Main-Class': 'checkmydigitalfootprint.MainApp'
  62. )
  63. }
  64. from {
  65. configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
  66. }
  67. }
  68.  
  69. mainClassName = 'checkmydigitalfootprint.MainApp'
Add Comment
Please, Sign In to add comment