Print

Print


The following worked fine for me, using Eclipse 20110218-0911 (it's old) on OS X 10.9.5.

1. File->New->Java Project.
2. Name your project.  I called it "MyProject"
3. Click Next >
4. Click Libraries tab
5. Click "Add External Jars..."
6. Add the mason.18.jar file.
7. Click Finish
8. Select "MyProject"
9. Run->Run As->Java Application
10. Select (for example) AntsForageWithUI
11. Press Okay

The AntsForageWithUI demo pops up no problem.

To run the 3D demos, add the 3D jars I provided in an earlier message.
If you want to do charts and graphs, etc., add the standard library jar files that come with MASON.

Sean

On Jun 12, 2015, at 9:31 AM, Garbutt, Kurtis <[log in to unmask]> wrote:

> Hi LuŪs,
> 
> thanks for the continued help. Much appreciated!
> 
> Iíve just attempted a clean install of everything and the current error Iím getting is: Error: Could not find or load main class sim.app.antsforage.AntsForage or Error: Could not find or load main class sim.app.heatbugs.HeatBugs
> 
> Iím guessing this is a problem with the CLASSPATH or some missing libraries. I have all the suggested jars in the Build Path in Eclipse as suggested but guess Iím missing something.

This almost certainly means that you have actually *not* added the 
> 
> Thanks again for the help,
> 
> K
> 
>> On 12 Jun 2015, at 13:55, LuŪs de Sousa <[log in to unmask]> wrote:
>> 
>> Hi again Kurtis,
>> 
>> Could you please detail what "no luck" exactly means. It is hard to
>> help if it is not clear what is going wrong.
>> 
>> Cheers,
>> 
>> LuŪs
>> 
>> On 12 June 2015 at 11:32, Garbutt, Kurtis <[log in to unmask]> wrote:
>>> Hi all,
>>> 
>>> thank you for your help. Much appreciated.
>>> 
>>> I have followed your instructions, but Iím still unable to get any of the
>>> samples (AntsForage, HeatBugs etc. [via right-click>run as>Java
>>> application]) to work.
>>> 
>>> 1. I have Java SDK 8 for Mac installed from here
>>> (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).
>>> 
>>> 2. I have Eclipse IDE for Java EE Developers, installed from here
>>> (https://eclipse.org/downloads/)
>>> 
>>> 3. I downloaded the MASON jar files (mason.18.jar) and the libraries
>>> (libraries.zip) from the MASON website.
>>> 
>>> 4. I created a new Java project in Eclipse and added the MASON jar to the
>>> build path as well as the libraries jar files
>>> 
>>> I have all the recommended jar files in place and still no luck.
>>> 
>>> I have followed these instructions
>>> (https://cs.gmu.edu/~eclab/projects/mason/docs/) and these instructions
>>> (https://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/)
>>> for installing Java3D and still it does not work.
>>> 
>>> Does anyone have a link to a version of Java3D that does work with Mac OS X?
>>> 
>>> Can anyone provide a detailed guide to getting MASON up and running on Mac?
>>> Can we work on a detailed installation guide here so others (I know there
>>> are others who canít get it set up and just give up) donít have the same
>>> problems as I am?
>>> 
>>> All the available instructions have you jumping back and forth from one link
>>> to the next and have outdated, contradictory or confusing instructions (do
>>> this, if that doesnít work go here and see if that works, it may not so go
>>> somewhere else and try this, itís outdated but just do this to get it to
>>> work!).
>>> 
>>> Thank you.
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On 10 Jun 2015, at 22:16, John McManus <[log in to unmask]> wrote:
>>> 
>>> Our experience in my course this year was interesting. I am a PC user, but
>>> many of the students had Mac laptops. We spent an enormous amount of time
>>> trying various website tricks to get Java 3D to work. A couple of Macs got
>>> it right just from the jars. Others did not. What worked for some did not
>>> work for others, even with the same latest OS. I finally had to omit 3D from
>>> the course. The online blogs also indicate variable results. I hope it is
>>> easier next Spring. Perhaps some of the experiences of the Mason user-group
>>> will help.
>>> 
>>> -----Original Message-----
>>> From: MASON Multiagent Simulation Toolkit
>>> [mailto:[log in to unmask]] On Behalf Of Sean Luke
>>> Sent: Tuesday, June 09, 2015 4:59 PM
>>> To: [log in to unmask]
>>> Subject: Re: Does anyone have clear installation instructions for MASON on
>>> Mac OS X 10.10
>>> 
>>> On Jun 9, 2015, at 8:28 AM, LuŪs de Sousa <[log in to unmask]> wrote:
>>> 
>>> Hi K,
>>> 
>>> One of my colleagues recently installed MASON on a Mac to test some of
>>> the tools I have been developing. This is what he did:
>>> 
>>> 1. Install Java from Oracle (I recommend going with version 8)
>>> 
>>> 2. Install Eclipse
>>> 
>>> 3. Download the MASON jar
>>> 
>>> 4. Create a new Java project in Eclipse and add the MASON jar to the
>>> build path
>>> 
>>> 
>>> I would also add the jar files from the libraries.zip file availailable
>>> online.
>>> 
>>> Like this you won't have 3D support but you'll be good to go for
>>> everything else.
>>> 
>>> 
>>> Building 3D support for the Mac is a matter of grabbing a bunch of jar files
>>> from the jogamp website, and dumping them in as well (see the MASON web page
>>> for rough instructions).
>>> 
>>> SEan
>>> 
>>> 
>