amateras-modeler icon indicating copy to clipboard operation
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

Open bailucool opened this issue 3 years ago • 21 comments

Jdk17 and eclipse 2021-12 (4.22.0) Click to create a class diagram, and the "finish" button does not respond ED73UF5 Y~H)UT}54F16HEJAmateras UML is updated to the latest version and still cannot be solved

bailucool avatar Mar 12 '22 18:03 bailucool

The probability is the version. Don't let me reduce the version

bailucool avatar Mar 12 '22 18:03 bailucool

The same for me.

davidbuenov avatar Mar 16 '22 09:03 davidbuenov

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.

junyu33 avatar Mar 20 '22 16:03 junyu33

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.

bailucool avatar Mar 20 '22 16:03 bailucool

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.

junyu33 avatar Mar 21 '22 00:03 junyu33

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.

takezoe avatar May 16 '22 01:05 takezoe

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.

bailucool avatar May 16 '22 11:05 bailucool

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.

G356 avatar Jun 12 '22 15:06 G356

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

bailucool avatar Jun 12 '22 15:06 bailucool

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

davidbuenov avatar Jun 14 '22 10:06 davidbuenov

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

bailucool avatar Oct 11 '22 07:10 bailucool

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.

stllh avatar Dec 23 '22 10:12 stllh

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)

careycy avatar Jan 13 '23 08:01 careycy

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

careycy avatar Jan 13 '23 08:01 careycy

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

careycy avatar Jan 13 '23 08:01 careycy

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.

cypher256 avatar Jan 19 '23 06:01 cypher256

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: @.***>

davidbuenov avatar Jan 19 '23 06:01 davidbuenov

@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 avatar Jan 19 '23 08:01 takezoe

@takezoe Looking forward to the new solution!

cypher256 avatar Jan 19 '23 13:01 cypher256

Wonderful. Thank you very much. I will do my best to support Amateras to be active again in the future eclipse.

stllh avatar Jan 20 '23 09:01 stllh

I have updated my video explaining how to use Amateras in Eclipse in Spanish. https://youtu.be/6ha62S8E_5I (in the comments)

davidbuenov avatar Jan 29 '23 09:01 davidbuenov