amateras-modeler
amateras-modeler copied to clipboard
Jdk17 and eclipse 2021-12 (4.22.0) Click to create a class diagram, and the "finish" button does not respond
Jdk17 and eclipse 2021-12 (4.22.0) Click to create a class diagram, and the "finish" button does not respond
Amateras UML is updated to the latest version and still cannot be solved
The probability is the version. Don't let me reduce the version
The same for me.
The probability is the version. Don't let me reduce the version
I've rollbacked eclipse to 2020-06 (4.16.0), but it still doesn't work.
It should be a problem with the JDK version. Look at the update history. If jdk11 is supported, there will be a problem after it is exceeded.
It should be a problem with the JDK version. Look at the update history. If jdk11 is supported, there will be a problem after it is exceeded.
I installed jdk8 and restarted my computer, and it finally works. Thanks for your help.
It looks an issue of Xstream with JDK 11. Xstream is used for serializing and deserializing the model data as XML in Amateras Modeler. I don't know if we can fix the issue without breaking compatibility but will take a look.
It looks an issue of Xstream with JDK 11. Xstream is used for serializing and deserializing the model data as XML in Amateras Modeler. I don't know if we can fix the issue without breaking compatibility but will take a look.
Well, thank you very much.
It looks an issue of Xstream with JDK 11. Xstream is used for serializing and deserializing the model data as XML in Amateras Modeler. I don't know if we can fix the issue without breaking compatibility but will take a look.
The value of vm in the eclipse.ini file is changed to below jdk11 and it can be used normally.
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
It looks an issue of Xstream with JDK 11. Xstream is used for serializing and deserializing the model data as XML in Amateras Modeler. I don't know if we can fix the issue without breaking compatibility but will take a look.
The value of vm in the eclipse.ini file is changed to below jdk11 and it can be used normally.
I have tried with these parameters but it does not work. Can you put an example? -vmargs -Dosgi.requiredJavaVersion=9
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
Even if 2020-12 and 2021-12 are incompatible, I want to use Amaterasu after 2021-12. Is it difficult to choose between using Xstream or another method by setting options? thanks.
It looks an issue of Xstream with JDK 11. Xstream is used for serializing and deserializing the model data as XML in Amateras Modeler. I don't know if we can fix the issue without breaking compatibility but will take a look.
JDK 11 can be used, but the JDK path and version used when eclipse starts needs to be modified.
Eclipse uses its own JDK version by default. The minimum version used by the latest eclipse is JDK 17. Modify /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini
-vm /Users/carey.z/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.5.v20221102-0933/jre/lib/libjli.dylib -vmargs -Dosgi.requiredJavaVersion=17
-vm /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin/java -vmargs -Dosgi.requiredJavaVersion=11
Modifying to the local JDK 11 path and version can solve this problem.
Eclipse IDE Version: 2022-12 (4.26.0) Build id: 20221201-1913 JDK version java version "11.0.2" 2019-01-15 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
============================================================
JDK 11 可以使用,但是需要修改eclipse 启动时使用的 JDK 路径和版本.
Eclipse默认使用的自带的JDK版本,最新的eclipse使用的最低版本为JDK 17,修改 /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini
-vm /Users/carey.z/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.5.v20221102-0933/jre/lib/libjli.dylib -vmargs -Dosgi.requiredJavaVersion=17
-vm /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin/java -vmargs -Dosgi.requiredJavaVersion=11
修改为本地的JDK 11路径 和 版本 可以解决这个问题。
Eclipse IDE Version: 2022-12 (4.26.0) Build id: 20221201-1913 JDK version java version "11.0.2" 2019-01-15 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
It looks an issue of Xstream with JDK 11. Xstream is used for serializing and deserializing the model data as XML in Amateras Modeler. I don't know if we can fix the issue without breaking compatibility but will take a look.
The value of vm in the eclipse.ini file is changed to below jdk11 and it can be used normally.
I have tried with these parameters but it does not work. Can you put an example? -vmargs -Dosgi.requiredJavaVersion=9
https://github.com/takezoe/amateras-modeler/issues/22#issuecomment-1381467156
Even if 2020-12 and 2021-12 are incompatible, I want to use Amaterasu after 2021-12. Is it difficult to choose between using Xstream or another method by setting options? thanks.
https://github.com/takezoe/amateras-modeler/issues/22#issuecomment-1381467156
Cause:
converter : com.thoughtworks.xstream.converters.reflection.SerializableConverter
message[1] :
Unable to make private void java.beans.PropertyChangeSupport.readObject(java.io.ObjectInputStream)
throws java.lang.ClassNotFoundException,java.io.IOException accessible:
module java.desktop does not "opens java.beans" to unnamed module
You can work around this issue by adding the following to eclipse.ini.
--add-opens=java.desktop/java.beans=ALL-UNNAMED
The module mechanism was introduced in Java 9 and later, and became strict and error in Java 16 and later, but specifying the library in --add-opens disables access restrictions.
I have published an Eclipse Distribution called Pleiades All in One, which includes my favorite Amateras Modeler, and have been experiencing this problem, which is why I came here. I will add this option to eclipse.ini in the next release of Pleiades All in One.
Thank you Shinji, your contribution is very useful!!
El jue, 19 ene 2023, 7:13, Shinji Kashihara @.***> escribió:
Cause:
converter : com.thoughtworks.xstream.converters.reflection.SerializableConverter message[1] : Unable to make private void java.beans.PropertyChangeSupport.readObject(java.io.ObjectInputStream) throws java.lang.ClassNotFoundException,java.io.IOException accessible: module java.desktop does not "opens java.beans" to unnamed module
You can work around this issue by adding the following to eclipse.ini.
--add-opens=java.desktop/java.beans=ALL-UNNAMED
The module mechanism was introduced in Java 9 and later, and became strict and error in Java 16 and later, but specifying the library in --add-opens disables access restrictions.
I have published an Eclipse Distribution called Pleiades All in One, which includes my favorite Amateras Modeler, and have been experiencing this problem, which is why I came here. I will add this option to eclipse.ini in the next release of Pleiades All in One.
— Reply to this email directly, view it on GitHub https://github.com/takezoe/amateras-modeler/issues/22#issuecomment-1396486227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4BN6DSV2R5XBAFWD3FLBDWTDLR5ANCNFSM5QSFYNHQ . You are receiving this because you commented.Message ID: @.***>
@cypher256 Thank you very much! For now, I will mention that option in README, but will look for a replacement of Xstream in long-term anyway. Of course, backward-compatibility will be the biggest problem to replace XStream but I think the plugin can use the new solution for new files while using Xstream for reading old files.
@takezoe Looking forward to the new solution!
Wonderful. Thank you very much. I will do my best to support Amateras to be active again in the future eclipse.
I have updated my video explaining how to use Amateras in Eclipse in Spanish. https://youtu.be/6ha62S8E_5I (in the comments)