Print

Print


Do you have the JAR file in the correct path?

https://secure-web.cisco.com/1rcIiR4lZ86B10TZAh-3iRJd0gv3Je5pVMbbgQsbeHtlXGIwAB8TeRaiNAKBafQwV03kqRkUtj9dIoo5dsmnurAggk3dhLyM83hOq6dmvyNt5e-DBQ8aygMsPrkaemXA5gCA9h8KraXV_nSwM-x-rWHX1GyXOxDfGA78JSYPVp74OvxeRpolIuxHbodUhj0rGKWQHRY-ztDE5HSMdmyt_E5rIhrCFHbRoHFsljf047nQayBJ1O57t298OChg7ItBOo4gYfQtHCgpPMieh1m-GBRrMxtAYdM-LPzLCgbc6SUZ7HQRsYdDGEatl-JAThpAJE_4KnEc9fpgnAWduGWbGZvGOk1thFSf2WCkO48r0hX4hu5ltmYomOGfUkYMLJgln12JZtlR76f2irpiMTpaZIz5mhFklhrbtBLA6UvhiO-U/https%3A%2F%2Fmvnrepository.com%2Fartifact%2Fjava3d%2Fj3d-core%2F1.3.1

On Tue, Jan 22, 2019 at 12:51 PM Jennifer Longo <[log in to unmask]> wrote:

> Thank you for your tutorial. I've installed and successfully run
> "Students" via Intellij, however, I am still coming across the same issue
> regarding java3d when trying to compile projects that require the library
> (e.g. StudentsWithUI - please see screenshot below). I am about to run some
> tests but any suggestions you would have for eliminating this error would
> be greatly appreciated.
>
>
> Thank you,
>
> Jennifer
> ------------------------------
> *From:* MASON Multiagent Simulation Toolkit <
> [log in to unmask]> on behalf of Ernesto Carrella <
> [log in to unmask]>
> *Sent:* Tuesday, January 22, 2019 4:36:04 AM
> *To:* [log in to unmask]
> *Subject:* Re: Compiling Issue
>
> You are right, those tutorials are old.
>
> I wrote a new one for intelliJ (which is what I use); see if this makes
> sense
>
> http://secure-web.cisco.com/1QBVfaHSEzCLyDEpJ9HLcCMv-k8QVPNCV2RslsUjZhX-49_my86C-N_wJss-2vRH1ssZVvipI4X8rVvdKBPDfSWAGSLPu20AwZc9lTGnYmmKk_mj8nv6ZcjXAfI-tJesBY1UirQzOwK7-CK-_wHrEa8J9uv1_wvjMJnjGi5r1YjHbTQC7t2u3lh3Bbof9XGl7Zoq4snGUg4HwbSsXVOrXVgLSfp7c0Tnoq5Ncfw9Jp0MD8t5KsbThDosXDcxYqZhphX0PK1F-fMbpqe4dbul_31unc8wG8Hb68oPX3fR3K_OubVABc1nG4XiBo53K0Qni5GkM3g0BAZrkahtGAHcAMbu3H8nsuQZqmm18bXqHjqpgl_pQI3kiSoWKR6WKcN2WXpzq8JKNIMiJEKMzWf1kI15qzp_iJ_fPzaMFL1Roa_g/http%3A%2F%2Fcarrknight.github.io%2Fabm%2Fmason%2F2019%2F01%2F22%2Fintellij-mason.html
> <http://secure-web.cisco.com/1G35GCeJvh2Tyj6jkNoIsUHw9KHbcCzMuKGFTubsFX5fZW01deEkDfLRMGILWbDfzu5uOwMennpPYhyv7sQ9Tbq2ZMOfygTx8i9ogNNAE76L1ku_V77Jpse3HMyW5kx0NkxK_EmCPgYeNmDe2vpPjfrivrKwmGPsBGY9j6T78kMhcWFKiEqORCylyOMJ9IynfcNUZlNef8TZJdku8K_1h2MYj3yHFp2RKlVBpVKXpdxtXODKprjul5DD6IkXlsEA6ayhs9BwhZJ83ZL2H0Pv535HCCaSrPQ2gZd5RCaOjn-B71sDLWeOpgkahMTKRE6fIUw67iX2FyxhDsf9jpH1BEF3RyE2kQENYnL62nJxU51a6wGj0KCuUOLdyG2Q8RIFInQrQccrsiwyE3W6ZwpoemP4aDT52OuSvJ_FQUzwNxBCWJyf4oICdZ8-7pvOQ61x7jE2eY4c5VYEzP9-w1saK8Q/http%3A%2F%2Fcarrknight.github.io%2Fabm%2Fmason%2F2019%2F01%2F22%2Fintellij-mason.html>
>
>
> On Tue, Jan 22, 2019 at 2:50 AM Jennifer Longo <[log in to unmask]> wrote:
>
> Hi there, thanks for your replay and detailed instructions.
>
>
> I attempted the steps you listed, and it did work with the basic
> Student.java file.
>
>
> However, when I tried to replicate a more complex example with UI
> (wcss/tutorial14), compiling the java files did work, but attempting to
> execute resulted in errors relating to classes not being found in linked
> libraries (terminal screenshot attached)
>
>
> I also spent a long time attempting to get Eclipse functional. There are
> only 2 guides I was able to find, both very old
>
>
>    1. https://cs.gmu.edu/~eclab/projects/mason/extensions/eclipse/
>    2. https://secure-web.cisco.com/1QeY1_la6y-HAmReOclM_5uO_kGduSIG6EB0epptkovIodO8oZH6cfPZKo8__CdLJVTe0VQa-PDI6AnsBOZuLJRdkdJU3G-8Hyiiq8q5a2fmX9hZwfHJ1uyPjAsUjEFCBQWjabaGHVPv9Ph6aV9E8acJQHNlwgRiR3PLwBjKqCLjZ0xYjUwCr9s9_M4cEYmG6M-r6LOtFuDwrdgoNXGy6B3EbcdSOC26SSdeQ9H_eZDM6HhWc8t93zxf2zReHEx6xAzn_s6aMcJv2w1l3tPUyyIOBfvcY6k4Qg8MslBITd7T1PeIy_w3WKCcXXVJ9i_fpMNz17WnCyz08cUYX3QdrJxjQ4ybPuUPPdcfy9jZ-MyqtWituo2atuueRvueCxSBSNTmIizMjAlGNutth_c3hhfMe9s9zdrG9rS02CpKq5pQ/https%3A%2F%2Fdocplayer.net%2F61592708-How-to-set-up-mason-in-eclipse.html
>    <https://secure-web.cisco.com/1jfbrISnBAMKipPLbJys91O6OY4derfhc3AzcFa4B8pc5RFxrtX6OBxA0lH5uyvu7O5LeOhYsnOMmIMBff_PWkiEO4sEYXrgZtzqkCI6_9PEZMk-MV-HGiLdOppEJ3qxorQq1oaMy9PHkWIn4TWpHLcHFFg4LAXkbVkkaevDv3v_VW8xszO4OpbsV7g3tzvhiawM3p_eyTVZX1xaHqKhRtXShZW2PeDOu-o7aH6TDMpt0YAxexkzbQZW3PiYLvpHDnvyDSv4E7z2Eh9ZjEhDN7KYRu30OvzK2BF3xrl-H9g9j4UYLZ4cULKoAf4T8zUX-7q4SRvBQ0eY_aCYdgvEkXB_-2QeMOIC11yaKCffVcHkLFvf_ayhfFZC5Yv_1KdmoGnDzBuPtT6ixDGLprYBtKKmJ9RCGTNFOT5tNnoOjRQef69vxiPzlgz2TzNYE5hOuENs0jV-tRftw6laMqGZy0g/https%3A%2F%2Fdocplayer.net%2F61592708-How-to-set-up-mason-in-eclipse.html>
>
> The second one did not seem to handle including necessary libraries such
> as j3d and jmf, so I spent most of my time on the approach detailed in the
> first link.
>
>
> After much time spent figuring out how to include the necessary libraries
> in the build path, I was finally able to get to a point where I could run
> the mason project as a Java application, and even was able to see a screen
> with the full list of available models, yet when trying to launch one of
> these models, I immediately receive a few errors that I cannot figure out
> the solution to (attached).
>
>
> I am unable to proceed past this point.
>
> Any additional help you may be able to offer is extremely appreciated.
>
>
> Thank you again for your help,
>
> Jennifer
>
>
>
> ------------------------------
> *From:* MASON Multiagent Simulation Toolkit <
> [log in to unmask]> on behalf of Ernesto Carrella <
> [log in to unmask]>
> *Sent:* Friday, January 18, 2019 11:53:49 PM
> *To:* [log in to unmask]
> *Subject:* Re: Compiling Issue
>
> Hello there
>
> the immediate fix here is the following. Create a directory that contains
> both the mason jar file and the Students example. It should look like this:
>
> [image: image.png]
> Where Students.java is the basic run
>
> import sim.engine.*;public class Students extends SimState{
>   public Students(long seed)
>     {
>       super(seed);
>     }
>   public static void main(String[] args)
>     {
>       doLoop(Students.class, args);
>       System.exit(0);
>     }}
>
>
> In terminal, within the directory ("testing_mason" in my machine) call the
> following:
>
> > javac -cp "mason.19.jar:." Students.java
>
> where javac is the compiler call, -cp (classpath) tells mason where to
> look for libraries and you can use ":" to add multiple paths (; in windows)
> and Students.java is your code. This will generate a class file:
> [image: image.png]
> Which you can run by calling
>
> java -cp "mason.19.jar:." Students
>
>
> notice that now we are calling java (without c) and we are pointing to the
> class name "Students" not any specific file.
> This will run.
>
>
> However, and I can't stress this enough, *this is not how anybody uses
> MASON*(or Java, since the late 90s). This is a tremendous pain for very
> little gain. Dealing with classpaths is not a useful skill, mucking with
> -cp flags or environmental variables teaches you nothing and wastes a lot
> of your time.
> Get started immediately on an IDE and do all the examples through it.
> There used to be a lot of eclipse+MASON guides around, so find one that
> works for you and do that.
> They will take care of all these chores and outside of very lateral cases
> you will not be bothered by the java machinery at all and you can focus on
> building and modelling.
>
> On Fri, Jan 18, 2019 at 10:43 PM Jennifer Longo <[log in to unmask]>
> wrote:
>
> My apologies for the delayed response. Here is a screenshot of my path:What
> I'm finding to be strange is that I've had it working before. Nothing has
> changed with the tutorial code or my own code (the unm directory two spots
> above wcss). I've had to do some run around in order to get the code
> running, I took direction from here:
> https://secure-web.cisco.com/1JVf0DCziAo6cJCe4xi9jyRb3FTgsASb1_xr0THPcEMVKg80-0n0fyupWz5X5OLs4ugpmt5JklrdsoMJUXroO1YaKSF2fMzDn0WdYqFJD-VB4Vj9uzRCESWw-kYNDD3XQQ5R6nKpLIoTrOR9FIM22BHdf39HzFyS00QRDEufzxDwTotIwxjQhJAEZD054LReVsEMToGAztQGHMcOp2dZB3QK4oxtWzt_2cS3jFpfQuPftWBSS02rC5IbhD6Ag5u6qY17n6OckSCOxG2UGXDNPH4cHBgXP9p4vLOBCpW9E_19jMVWGG5mSdmYtq5Vh580R6BejfsbSWKWNEvC6U1xRZxsW6L-XD89M8tdnE3J9iX8OzUGRyO0t40Qc_6aDUaQXZdXk7vw2z1PFe4Z80zAn_g/https%3A%2F%2Fbbs.archlinux.org%2Fviewtopic.php%3Fid%3D220386
> <https://secure-web.cisco.com/16-7E8vG0VqPDMBIv4r94JeGpIJY-rWeGop-KEqGkcUa8Iqyr40Da_YQfUvOniXyZbSCBmJ-d3kzirOJ_SuaH2ufL7Isii9-bkHIZLTmdSyqxMJiuT9MHjNa9e8xscKbU-E02G6NVEakifurOCr-XGaQp5tY6cVdsuqxSA83YXIpLjoVSp0sum4wTf0y__8x33YmGBjXw8cEVuTOHuMCFCMO-CKMZ3KJW3mS80obAtrjfEU2fxA55U9c1rmUcXgzRZqgEOpAcEBHbfvVZ5I8T-zA2Nt6GJ6Ud29ovZP5Bbs3BFxKdOvqeOs9oQQAY5r3HXTrsd3cBmYkIWGnL1shXOgLzTElwvwjmsimqVzuoUqMfAvqo5G2PCh8cSeI9acQuy87-uXNzlNVW44Oxn_0JPLxUWyb3kKzoI1xbxkN5uqpJH7vgQhJ_o4W9mb677XVBSoh2HKOc0JitVivxmhbYmw/https%3A%2F%2Fbbs.archlinux.org%2Fviewtopic.php%3Fid%3D220386> and
> yet now no matter what I do, the sim.engine is just not being recognized. I
> really appreciate you all getting back to me.
>
>
> Thank you,
>
> Jennifer
>
> ------------------------------
> *From:* MASON Multiagent Simulation Toolkit <
> [log in to unmask]> on behalf of Peter Gacs <[log in to unmask]>
> *Sent:* Wednesday, January 16, 2019 2:15:34 PM
> *To:* [log in to unmask]
> *Subject:* Re: Compiling Issue
>
> Currently I am using MASON via the IntelliJ IDE.  There, you can specify a
> dependency in the Project Structure screen, telling the IDE where it finds
> the jar files or libraries it needs for compilation.
>
> Peter Gacs
>
> > On Jan 16, 2019, at 14:28 , Jennifer Longo <[log in to unmask]> wrote:
> >
> > Hello,
> >
> > I am relatively new working with MASON and am having issues compiling
> your tutorial code. Using traditional Java methods are yielding an error
> message of the sim engine not being found. All packages are placed in the
> correct directories. I have searched and noticed others having similar
> issues with bio posted solutions that work. Any help would be greatly
> appreciated.
> >
> > Best,
> > Jennifer
>
>
>
> --
> Ernesto Carrella
> http://secure-web.cisco.com/1GbynJCdMuQn8EmfESENNFZgbOpHY7mSAI5iDIeHaw4lgnLVdoJWyw1kOt-_hqb_0Lcx06H91rj373xY2YeKb2Cn8ld8nzuG9bZIFGf8zEvajslHihLz6eZGl41wseJt0KQrSqphOCS_RzfzKuEX4Bu3wK2oOxqnyTOa2vOnW6oS50eoJR5nD1ZfkOmqbysGRvdQtFNdnHcVvNpYUy3-_I5pqFP7zg-l-8eo_AzEZYoCj8XJyq8ryZfG4R2xkWPv_urLnu1N7wgHs_jQYPyefxIEUf2hFAUo_Yd-2teSec13X0-ngXmcsNiGaAENXjf_2koIZnJ5hZPZnvyzoDgiL9ZWT5Onic4tj_u8qpXmbZrLZVK6PKQwCiwkrOeOjV4rQyc028yiPV2_HQJ6QzywX3ia2Jy_56I5QTjK9KlrhyxQ/http%3A%2F%2Fcarrknight.github.io%2F
> <http://secure-web.cisco.com/1562ifeoOT72dlamK3r83vzdIyaa60nlh9fC55VkOXkH4rsEFHIKqEq1pKepBEhhjf-yXsXnla5T0RciD3wIQpVHooh3PBrh8mfj_7Axhebo6rYbzSOiRijCKtWSoC33Jw3Q_SP2AraFMZ4xu9X2u06hvm8ecU5geVfoHUOzP-LxzCjRuyNW9t0PblzvzCdbP0iP4XG3OWZkUoj1IHB-w1N1trdyQXmQ26vmUA07kyFY1Qnih0_iI2nqEmo_3oOr-7oZhnv9h4jHxdHxDjmPrZuibvtjgOvYns9rm9-O0QTYLaQqB4pnt_LK7vLuFLe69kizmDzXn5Fm0gsuHYjDRKUJjpZRHm4feLsQq5A2iY3WtrW82PLK4TNoeiFUgzzGdL_pawxIQZjFSssh8mxlF7f3TEYFUBymv0ww2tK2Dptf6UJAZgxTvFOCg5bc7cDrAuQkwNvZC3wFAarG9DSdYDmGJdWmlKUMG4ePgPpopkWc/http%3A%2F%2Fcarrknight.github.io%2F>
>
>
>
> --
> Ernesto Carrella
> http://secure-web.cisco.com/1GbynJCdMuQn8EmfESENNFZgbOpHY7mSAI5iDIeHaw4lgnLVdoJWyw1kOt-_hqb_0Lcx06H91rj373xY2YeKb2Cn8ld8nzuG9bZIFGf8zEvajslHihLz6eZGl41wseJt0KQrSqphOCS_RzfzKuEX4Bu3wK2oOxqnyTOa2vOnW6oS50eoJR5nD1ZfkOmqbysGRvdQtFNdnHcVvNpYUy3-_I5pqFP7zg-l-8eo_AzEZYoCj8XJyq8ryZfG4R2xkWPv_urLnu1N7wgHs_jQYPyefxIEUf2hFAUo_Yd-2teSec13X0-ngXmcsNiGaAENXjf_2koIZnJ5hZPZnvyzoDgiL9ZWT5Onic4tj_u8qpXmbZrLZVK6PKQwCiwkrOeOjV4rQyc028yiPV2_HQJ6QzywX3ia2Jy_56I5QTjK9KlrhyxQ/http%3A%2F%2Fcarrknight.github.io%2F
> <http://secure-web.cisco.com/1U82Cfw1pwX4LE2X3daRsDfAw7gVtDg7IN79jzQbn_hvl7Ef6j6XDjwvQdyT-cuXO3NHP3gTheZyVHWQ85y6tthGmWHLdwXJXhA0dEDgwQro5wXh2I03T9OrMJzJ4s08aqCKMSBat6ymNuJLzVv2OZiGQ-Y6BCcPZDLIOT7tFBvFG8DRREBJ7GBmsHDccpRS1hgcVu94-yYgiWe3qXkTt57rOMFxyCJjX8cEOsCojtMI4O-DeanOK7kqyv_L1n05Wlac3QFrNgEBQY17tq10zafWGEc1HMookDboIXdruW-yJY1GQSueIsjFfed4mi_udTkrNHw9X9HClQ1-8eUYvPdftIZySFAPYxrLOdhKNf0edyLVtRy4IM2SaD_C0KLeFeUs3GWTrtt4JDl8xoJHK5yw5061iT8TZM506L31s4oCYATLgDru5u1vkIvbFC9B7u8ev8dxJ0OqHntNW9B9Zlg/http%3A%2F%2Fcarrknight.github.io%2F>
>