the-anylogic-company / AnyLogic-Pypeline

A custom AnyLogic library for running Python inside an AnyLogic model (Java)
https://github.com/the-anylogic-company/AnyLogic-Pypeline/wiki
MIT License
106 stars 26 forks source link

Error during model creation in AnyLogic #53

Closed djangozho closed 1 year ago

djangozho commented 1 year ago

Hallo,

When I followed the Quick start guide creating model in AnyLogic, there was something wrong when I run the model.

Error during model creation: com/anylogic/engine/presentation/ColorConstants Caused by: com.anylogic.engine.presentation.ColorConstants java.lang.NoClassDefFoundError: com/anylogic/engine/presentation/ColorConstants at com.anylogic.libraries.pypeline.Jsonifier.(Jsonifier.java:1955) at model1.Main.instantiate_pyCommunicator_xjal(Main.java:125) at model1.Main.instantiateBaseStructureThis_xjal(Main.java:263) at model1.Main.(Main.java:246) at model1.Simulation.createRoot(Simulation.java:155) at model1.Simulation.createRoot(Simulation.java:1) Caused by: java.lang.ClassNotFoundException: com.anylogic.engine.presentation.ColorConstants at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 6 more

Thanks for your support. Best Regards

vutle commented 1 year ago

I have the same error using Anylogic 8.8.1

djangozho commented 1 year ago

I solved the problem in using AnyLogic 8.8.3

vutle commented 1 year ago

Thanks, that problem was also fixed in AnyLogic 8.8.4.