Skip to content

Instantly share code, notes, and snippets.

@ntung
Forked from androidfred/javafx.md
Created June 25, 2021 21:46
Show Gist options
  • Save ntung/715050219b1e1cbb6ebc2a86162874e0 to your computer and use it in GitHub Desktop.
Save ntung/715050219b1e1cbb6ebc2a86162874e0 to your computer and use it in GitHub Desktop.

Revisions

  1. @androidfred androidfred revised this gist Oct 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion javafx.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Getting `java.lang.ClassNotFoundException: javafx.util.Pair`? It's because `javafx.util.Pair` and other classes from `javafx.util` are not included in OpenJDK. Options for resolving:
    `java.lang.ClassNotFoundException: javafx.util.Pair` happens because `javafx.util.Pair` and other classes from `javafx.util` are not included in OpenJDK. Options for resolving:

    # Switch class
    `Map.Entry<K, V>` from `java.util` is similar to `javafx.util.Pair`.
  2. @androidfred androidfred revised this gist Oct 20, 2016. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions javafx.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,4 @@
    Getting `java.lang.ClassNotFoundException: javafx.util.Pair`?

    `javafx.util.Pair` and other classes from `javafx.util` are not included in OpenJDK. Options for resolving:
    Getting `java.lang.ClassNotFoundException: javafx.util.Pair`? It's because `javafx.util.Pair` and other classes from `javafx.util` are not included in OpenJDK. Options for resolving:

    # Switch class
    `Map.Entry<K, V>` from `java.util` is similar to `javafx.util.Pair`.
  3. @androidfred androidfred revised this gist Oct 20, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions javafx.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Getting `java.lang.ClassNotFoundException: javafx.util.Pair`?

    `javafx.util.Pair` and other classes from `javafx.util` are not included in OpenJDK. Options for resolving:

    # Switch class
  4. @androidfred androidfred revised this gist Oct 20, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion javafx.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,9 @@
    `Map.Entry<K, V>` from `java.util` is similar to `javafx.util.Pair`.

    # Install java-openjfx
    Install `java-openjfx` through your package manager. (or whatever means you used to install Java on your machine) Note that `java-openjfx` is compatible with OpenJDK8, not previous versions. After installing `java-openjfx`, you may have to add it manually to your IDE SDK classpath. Eg in IntelliJ, you may have to go to `Project Structure` | `SDKs` | `<select your SDK>` | `Classpath` | `+` (the Classpath `+`, not the SDKs `+`) | and add `/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar` (which should be there now that `java-openjfx` has been installed) | `OK`
    Install `java-openjfx` through your package manager. (or whatever means you used to install Java on your machine) Note that `java-openjfx` is compatible with OpenJDK8, not previous versions.

    After installing `java-openjfx`, you may have to add it manually to your IDE SDK classpath. Eg in IntelliJ, you may have to go to `Project Structure` | `SDKs` | `<select your SDK>` | `Classpath` | `+` (the Classpath `+`, not the SDKs `+`) | and add `/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar` (which should be there now that `java-openjfx` has been installed) | `OK`

    # Switch JDK
    Switch to the Oracle JDK. (bleh)
  5. @androidfred androidfred revised this gist Oct 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion javafx.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    `Map.Entry<K, V>` from `java.util` is similar to `javafx.util.Pair`.

    # Install java-openjfx
    Install `java-openjfx` through your package manager. (or whatever means you used to install Java on your machine) Note that `java-openjfx` is compatible with OpenJDK8, not previous versions. After installing `java-openjfx`, you may have to add it manually to your IDE SDK classpath. Eg in IntelliJ, you may have to go to `Project Structure` | `SDKs` | `<select your SDK>` | `Classpath` | `+` (the Classpath `+`, not the SDKs `+`) | and add `/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar` (which should be there now that java-openjfx has been installed) | `OK`
    Install `java-openjfx` through your package manager. (or whatever means you used to install Java on your machine) Note that `java-openjfx` is compatible with OpenJDK8, not previous versions. After installing `java-openjfx`, you may have to add it manually to your IDE SDK classpath. Eg in IntelliJ, you may have to go to `Project Structure` | `SDKs` | `<select your SDK>` | `Classpath` | `+` (the Classpath `+`, not the SDKs `+`) | and add `/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar` (which should be there now that `java-openjfx` has been installed) | `OK`

    # Switch JDK
    Switch to the Oracle JDK. (bleh)
  6. @androidfred androidfred revised this gist Oct 20, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions javafx.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    `javafx.util.Pair` and other classes from javafx.util are not included in OpenJDK. Options for resolving:
    `javafx.util.Pair` and other classes from `javafx.util` are not included in OpenJDK. Options for resolving:

    # Switch class
    `Map.Entry<K, V>` from java.util is similar to javafx.util.Pair.
    `Map.Entry<K, V>` from `java.util` is similar to `javafx.util.Pair`.

    # Install java-openjfx
    Install `java-openjfx` through your package manager. (or whatever means you used to install Java on your machine) Note that `java-openjfx` is compatible with OpenJDK8, not previous versions. After installing `java-openjfx`, you may have to add it manually to your IDE SDK classpath. Eg in IntelliJ, you may have to go to `Project Structure` | `SDKs` | `<select your SDK>` | `Classpath` | `+` (the Classpath `+`, not the SDKs `+`) | and add `/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar` (which should be there now that java-openjfx has been installed) | `OK`
  7. @androidfred androidfred revised this gist Oct 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion javafx.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    javafx.util.Pair and other classes from javafx.util are not included in OpenJDK. Options for resolving:
    `javafx.util.Pair` and other classes from javafx.util are not included in OpenJDK. Options for resolving:

    # Switch class
    `Map.Entry<K, V>` from java.util is similar to javafx.util.Pair.
  8. @androidfred androidfred revised this gist Oct 20, 2016. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions javafx.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,13 @@
    javafx.util.Pair and other classes from javafx.util are not included in OpenJDK. Options for resolving:

    SWITCH CLASS
    Map.Entry<K, V> from java.util is similar to javafx.util.Pair.
    # Switch class
    `Map.Entry<K, V>` from java.util is similar to javafx.util.Pair.

    INSTALL JAVA-OPENJFX
    Install java-openjfx through your package manager. (or whatever means you used to install Java on your machine) Note that java-openjfx is compatible with OpenJDK8, not previous versions. After installing java-openjfx, you may have to add it manually to your IDE SDK classpath. Eg in IntelliJ, you may have to go to Project Structure | SDKs | <select your SDK> | Classpath | + (the Classpath +, not the SDKs +) | and add /usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar (which should be there now that java-openjfx has been installed) | OK .
    # Install java-openjfx
    Install `java-openjfx` through your package manager. (or whatever means you used to install Java on your machine) Note that `java-openjfx` is compatible with OpenJDK8, not previous versions. After installing `java-openjfx`, you may have to add it manually to your IDE SDK classpath. Eg in IntelliJ, you may have to go to `Project Structure` | `SDKs` | `<select your SDK>` | `Classpath` | `+` (the Classpath `+`, not the SDKs `+`) | and add `/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar` (which should be there now that java-openjfx has been installed) | `OK`

    SWITCH JDK
    # Switch JDK
    Switch to the Oracle JDK. (bleh)

    KEYWORDS
    How to tutorial setup openjdk openjfx classnotfoundexception javafx.util javafx.util.* javafx.util.Pair IntelliJ IDEA compilation error doesn't compile not found
    ## KEYWORDS
    How to tutorial setup openjdk openjfx classnotfoundexception javafx.util javafx.util.Pair IntelliJ IDEA compilation error doesn't compile not found
  9. @androidfred androidfred created this gist Oct 20, 2016.
    13 changes: 13 additions & 0 deletions javafx.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    javafx.util.Pair and other classes from javafx.util are not included in OpenJDK. Options for resolving:

    SWITCH CLASS
    Map.Entry<K, V> from java.util is similar to javafx.util.Pair.

    INSTALL JAVA-OPENJFX
    Install java-openjfx through your package manager. (or whatever means you used to install Java on your machine) Note that java-openjfx is compatible with OpenJDK8, not previous versions. After installing java-openjfx, you may have to add it manually to your IDE SDK classpath. Eg in IntelliJ, you may have to go to Project Structure | SDKs | <select your SDK> | Classpath | + (the Classpath +, not the SDKs +) | and add /usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar (which should be there now that java-openjfx has been installed) | OK .

    SWITCH JDK
    Switch to the Oracle JDK. (bleh)

    KEYWORDS
    How to tutorial setup openjdk openjfx classnotfoundexception javafx.util javafx.util.* javafx.util.Pair IntelliJ IDEA compilation error doesn't compile not found