antonio-pgarcia / RRepast

Invoke Repast Simphony models from R programs
Other
3 stars 2 forks source link

(Question) Issue running example models on mac #2

Open thomasGodfrey opened 1 year ago

thomasGodfrey commented 1 year ago

Hi!

To provide some context, I have: downloaded the RRepast package, downloaded the PredatorPrey example model, installed the example model, Added the rrepast integration jar to the example model lib folder and added the line '' to the model's scenario.xml file Loaded the example-1.R file, configured the PredatorPrey model path and executed the script

On my PC, following these steps, everything seems to work great. However, on my Mac, I get the following error: Error in (function (cond) : error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: repast/simphony/engine/environment/AbstractRunner

I am using the same version of java on both machines and followed the same steps as above. Do you have any suggestions for things to look into?

Thank you for your help, Tom

greentheo commented 1 year ago

Same issue here. Tom did you ever figure this out?

thomasGodfrey commented 1 year ago

This seemed to be related to some Java version incompatibilities. I had to install an older version of RStudio (in this case 2019.09) on my machine (an M2 Mac) and that fixed the problem.