Skip to content

Instantly share code, notes, and snippets.

@ryo33
Last active January 2, 2021 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryo33/16c7dc6ebf0a5e7f438a2611513bb0bc to your computer and use it in GitHub Desktop.
Save ryo33/16c7dc6ebf0a5e7f438a2611513bb0bc to your computer and use it in GitHub Desktop.
How to run erlyberly 20210102 Erlang OTP 23

1. Install JavaFX SDK

2. git clone Erlyberly

git clone https://github.com/andytill/erlyberly.git && cd erlyberly

3. Apply the patch

diff --git a/pom.xml b/pom.xml
index 6faf95a..2ab2309 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,11 +30,11 @@
   </properties>
 
   <dependencies>
-    <dependency>
-      <groupId>com.github.andytill</groupId>
-      <artifactId>jinterface</artifactId>
-      <version>1.6.0</version>
-    </dependency>
+     <dependency>
+       <groupId>com.github.rafaelmsoares</groupId>
+       <artifactId>jinterface</artifactId>
+       <version>1.11</version>
+     </dependency>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
@@ -56,10 +56,47 @@
       <artifactId>toml4j</artifactId>
       <version>0.6.1</version>
     </dependency>
+  <dependency>
+      <groupId>org.openjfx</groupId>
+      <artifactId>javafx</artifactId>
+      <version>16-ea+1</version>
+      <type>pom</type>
+    </dependency>
+     <dependency>
+      <groupId>org.openjfx</groupId>
+      <artifactId>javafx-base</artifactId>
+      <version>16-ea+1</version>
+      <type>pom</type>
+    </dependency>
+     <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-graphics</artifactId> <version>16-ea+1</version> <type>pom</type> </dependency>
+     <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-controls</artifactId> <version>16-ea+1</version> <type>pom</type> </dependency>
+     <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-fxml</artifactId> <version>16-ea+1</version> <type>pom</type> </dependency>
+     <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-media</artifactId> <version>16-ea+1</version> <type>pom</type> </dependency>
+     <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-media</artifactId> <version>16-ea+1</version> <type>pom</type> </dependency>
+     <dependency>
+      <groupId>org.openjfx</groupId>
+      <artifactId>javafx-maven-archetypes</artifactId>
+      <version>0.0.5</version>
+      <type>pom</type>
+    </dependency>
+     <dependency>
+      <groupId>org.openjfx</groupId>
+      <artifactId>javafx-archetype-fxml</artifactId>
+      <version>0.0.5</version>
+      <type>pom</type>
+    </dependency>
   </dependencies>
 
   <build>
     <plugins>
+      <plugin>
+        <groupId>org.openjfx</groupId>
+        <artifactId>javafx-maven-plugin</artifactId>
+        <version>0.0.4</version>
+        <configuration>
+          <mainClass>erlyberly.ErlyBerly</mainClass>
+        </configuration>
+      </plugin>
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <version>2.4.1</version>

4. Compile

./mvnw clean compile install assembly:single

5. Run

java --module-path ${path to your javafx-sdk}/lib --add-modules javafx.controls,javafx.fxml,javafx.base,javafx.swing -jar target/*runnable.jar

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment