Simone,
In NetBeans, under the run tab (not the icon), you’ll find “Set Project Configuration”. If there you select “Customize…”, you’ll be invited to select the main class. Our models are built with main classes with and without the GUI. To run without the GUI, you have to select the non-GUI main class.
Good luck~
//Bill Kennedy
From: Simone Gabbriellini <[log in to unmask]>
Reply-To: MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date: Tuesday, September 9, 2014 at 9:57 AM
To: "[log in to unmask]" <[log in to unmask]>
Subject: how to run without the UI
Dear List,
I am developing my model in Netbeans. When I compile the project, I have a dist folder where myproject.jar and libraries are stored. If I double click the jar or start it from a terminal, it works fine and the UI is displayed correctly.
I am not able, however, to run the model without UI. If I move to the classes folder (made by netbeans), and run
java sim.KSM.SimulationEnvironmentError: unable to find or load main class sim.KSM.SimulationEnvironment
Is there something I am missing here?
Best,Simone--
-----------------------------------------------------------------
Simone Gabbriellini, PhD
Post-doctoral Researcher
ANR founded research project "DIFFCERAM"
GEMASS, CNRS & Paris-Sorbonne.
mobile: +39 340 39 75 626
email: [log in to unmask]