OpenHFT / Chronicle-Map

Replicate your Key Value Store across your network, with consistency, persistance and performance.
http://chronicle.software/products/chronicle-map/
Apache License 2.0
2.74k stars 468 forks source link

how to solve the "error: symbol not found" for LongValue$$Heap.java and LongValue$$Native.java? #473

Closed weixiaoRetour closed 1 year ago

weixiaoRetour commented 1 year ago

I am using Chronicle-Map version 3.23.5, and I also set --illegal-access=permit in my modular project in JDK17, when I create a ChronicleMap<LongValue, ByteBuffer>, it reported "...net.openhft.chronicle.core...error: symbol not found", what should I do?

weixiaoRetour commented 1 year ago

It reports the "Error: Symbol not found" of LongValue, Can anyone help me?

weixiaoRetour commented 1 year ago

LongValue$$Heap.java and LongValue$$Native.java report "error: symbol not found" respectively.

weixiaoRetour commented 1 year ago

I found that the error only occurs in modular projects, which makes me depressed....

weixiaoRetour commented 1 year ago

I found that this error may be related to the environment variable "java.class.path", after I use System.setProperty method to force the paths of the Chronicle‘s libraries to this environment variable, the program no longer reports this error, but there is a new However, there is a new problem, that is, the program becomes very laggy, and any operation on the program interface will cause the cpu usage to increase dramatically, even if these operations have nothing to do with the Chronicle object.

alamar commented 1 year ago

Seems to be a duplicate of OpenHFT/Chronicle-Core#485 - closing