Colby-CPU-Sim / CPUSim

GNU General Public License v3.0
52 stars 18 forks source link

Failed to build with Java 8 (Unrecognized option: --illegal-access=permit) #122

Open saiema opened 1 year ago

saiema commented 1 year ago

When following the instructions:

  1. Clone repo
  2. Run gradle dist from inside CPUSim folder

Expected behaviour: The project compiles

Obtained behaviour:

Unrecognized option: --illegal-access=permit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

System information:

Notes:

If running with Java 11 (jdk-11.0.12), the following error appears

Could not read 'http://dl.bintray.com/content/shemnon/javafx-gradle/0.4.0/javafx.plugin' as it does not exist.
djskrien commented 1 year ago

Hello,

Unfortunately, I am no longer supporting CPU Sim and so I am afraid I cannot help you fix your problem.

If you have the time, you can try to update it yourself to use the newest version of Java. The main change that you will need to make is that you will need to download the latest RichTextFX library 0.10.9 <https://github.com/FXMisc/RichTextFX https://github.com/FXMisc/RichTextFX> and get it to work with CPUSim. Then CPU Sim should run with the latest version of Java.

Sincerely, Dale

On Jan 24, 2023, at 3:33 PM, Simón Emmanuel Gutiérrez Brida @.***> wrote:

When following the instructions:

Clone repo Run gradle dist from inside CPUSim folder Expected behaviour: The project compiles

Obtained behaviour:

Unrecognized option: --illegal-access=permit Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. System information:

Ubuntu 20.10 Kernel 5.19.0-29-generic Java version jdk1.8.0_261 Notes:

If running with Java 11 (jdk-11.0.12), the following error appears

Could not read 'http://dl.bintray.com/content/shemnon/javafx-gradle/0.4.0/javafx.plugin' as it does not exist. — Reply to this email directly, view it on GitHub https://github.com/Colby-CPU-Sim/CPUSim/issues/122, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3J7SCO7R73AIRC6NIDA33WUA4DPANCNFSM6AAAAAAUFRFD6Y. You are receiving this because you are subscribed to this thread.