How to run example with JavaSim simulation package?

churchurnaan

Need help to run examples in the JavaSim simulation package.

https://github.com/nmcl/JavaSim

The example Main.java is available at:

examples/src/main/java/org/javasim/examples/basic

Used to run Java a long time back. Dont remember now. Need procedure.

What I Did:

Imported javasim project in Eclipse. Got Build success after maven test and maven install. Then I tried running the example in the said folder. Got many errors.

Screenshot is attached of the error enter image description here

Note that I also performed in Eclipse:

Right click on the project folder -> Properties Choose 'Java Build Path' Click on 'Sources' tab on top Click on 'Add Folder' on the right panel Selected folder examples and apply

Elikill58

(problem solved in comment)

There is two project in one, but they are not linked.

The first and global one have a pom.xml file which make the src/main/java folder works and editable. It also make it compile.

In your case, you want to use the "examples" project. This one is NOT linked to the main project. I explain:

You can create a project with multiple sub-project with maven. When you are building the main, all sub are also built according to what you put in the pom.xml file.

Back to your case, the main don't use the examples as sub-project. So it have to be compilated in a second hand.

If you include the main project, the second will be used as package and not sub-project. Such as you want a new project without the main, you can copy/paste the "examples" folder and use only this one as project.

Now, You can import it in eclipse as Maven project.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I run an example from a Flutter package/library?

simpy how to run a simulation multiple times

How to run a montecarlo simulation for multple regression in R?

How example can be run in test?

How to run BlocObserver example in cli

Changing a `docker` example script to run on a local file (R package)

How to extract simulation data from Fable package forecast?

How to run the psych package in parallel?

How to run an npm package locally?

How to run dlib package in buildozer?

how to run FPGrowth in sparklyr package

How to see which data is used in an example of a package

How would I use purrr to run a simulation multiple time based upon a list of scenarios and a simulation function

How to run monte carlo simulation from a custom distribution in R

How to run a Karate Feature file after a Gatling simulation completes

How do you run multiple karate feature file in a gatling simulation?

How to Increase the simulation speed of a gem5 run

How to stop simulation run after specific time NOT tick

How to run valgrind with basic c example?

How to run npm 'filestream' example code?

How to run the IPFS example below in node?

How to run the akka grpc java example

How to not run an example using roxygen2?

how to run tensorflow distributed mnist example

How do I run the snapcraft webchat example?

Scheduling Simulation Run in Anylogic

Golang - how to run a command referring to a package

How to run a ruby package installed on an alternative path?

How to run and where to save a downloaded package on Ubuntu?