Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jdk17 and eclipse 2021-12 (4.22.0) Click to create a class diagram, and the "finish" button does not respond #22

Open
bailucool opened this issue Mar 12, 2022 · 21 comments
Assignees

Comments

@bailucool
Copy link

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
Copy link
Author

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

@davidbuenov
Copy link

The same for me.

@junyu33
Copy link

junyu33 commented Mar 20, 2022

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.

@bailucool
Copy link
Author

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.

@junyu33
Copy link

junyu33 commented Mar 21, 2022

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.

@takezoe takezoe self-assigned this May 16, 2022
@takezoe
Copy link
Owner

takezoe commented May 16, 2022

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.

@bailucool
Copy link
Author

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.

@G356
Copy link

G356 commented Jun 12, 2022

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.

@bailucool
Copy link
Author

bailucool commented Jun 12, 2022 via email

@davidbuenov
Copy link

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

@bailucool
Copy link
Author

bailucool commented Oct 11, 2022 via email

@stllh
Copy link

stllh commented Dec 23, 2022

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.

@careycy
Copy link

careycy commented Jan 13, 2023

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
Copy link

careycy commented Jan 13, 2023

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

#22 (comment)

@careycy
Copy link

careycy commented Jan 13, 2023

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.

#22 (comment)

@cypher256
Copy link

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.

@davidbuenov
Copy link

davidbuenov commented Jan 19, 2023 via email

@takezoe
Copy link
Owner

takezoe commented Jan 19, 2023

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

@cypher256
Copy link

@takezoe
Looking forward to the new solution!

@stllh
Copy link

stllh commented Jan 20, 2023

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

@davidbuenov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants